in reply to Regex to find the last matching set in a long scalar
indicating that, perhaps, the regex is not using the regex engine in the most optimal way. It probably does not matter so much if you do it only once or just a few times, and the warning can presumably be silenced out with a pragma such as no warnings qw/regexp/; (I haven't tested), but if you're doing that many many times, then you might want to find another solution, for example a somewhat subtler regex that would not backtrack so much, by making some additional assumptions on the content of your scalar before (or possibly after) the place you want to match.Complex regular subexpression recursion limit (32766) exceeded at ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex to find the last matching set in a long scalar
by Athanasius (Archbishop) on Nov 16, 2014 at 07:34 UTC | |
by Laurent_R (Canon) on Nov 16, 2014 at 14:17 UTC |