|
|
| No such thing as a small change | |
| PerlMonks |
Re^6: Why is "any" slow in this case?by LanX (Saint) |
| on Jul 30, 2025 at 22:18 UTC ( [id://11165882]=note: print w/replies, xml ) | Need Help?? |
|
> please test thoroughly, I just hacked the code into my mobile as an example ... as expected the first approach was buggy. This approach seems to pass the tests (using 1 for 0 to test more edge cases) Hint: Anchoring is tricky when dealing with variable length strings and look-aheads.
Cheers Rolf
UPDATEhad to improve the rexex again... :/ Probably a negative-look-behind is easier and faster.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||