in reply to Re^2: Surprisingly poor regex performance
in thread Surprisingly poor regex performance
The usual trick to make regexes faster is to be as explicit as you can be (like spelling out the newlines) and it helped here. I don't know enough about perl's regex internals to really explain why it works as well as it does in this case.
|
|---|