in reply to Re^2: Surprisingly poor regex performance
in thread Surprisingly poor regex performance
For some reason, the "^" is not being optimized properly as an anchor for "/mg" searches. Leaving it out entirely, or substituting the alternate "(?:\A|\n)" pattern, results in searches that are much faster. That seems like a bug in the optimizer.
|
|---|