laziness, impatience, and hubris | |
PerlMonks |
Re: regex is not working as I intendedby AnomalousMonk (Archbishop) |
on Jan 18, 2018 at 22:50 UTC ( [id://1207487]=note: print w/replies, xml ) | Need Help?? |
Not a complete answer, but just a note: (?>...) is not a positive lookahead (which would be (?=...) instead), but is an "atomic" grouping (update: also called an "independent" subexpression) that affects backtracking. See Extended Patterns in perlre. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|