in reply to Regex optimization: Can (?> ) and minimal match help here?
I wouldn't expect much backtracking from your regexp, even in a failure case, so (?>...) will probably be of limited use. For example, either it finds an attribute or it doesn't, there's nothing else to try to match. You can try playing with (?>...) to find out for sure.
|
|---|