in reply to Re^3: How to enforce match priority irrespective of string position
in thread How to enforce match priority irrespective of string position
you can separate the "condition to match" (in the lookahead) from the actual match-pattern.
Point is that a failed partial match might move the pos forward, but if the condition fails pos won't be changed before trying the next or-alternative.
rsfalse might provide/link an example.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How to enforce match priority irrespective of string position
by rsFalse (Chaplain) on Mar 07, 2021 at 15:01 UTC | |
by LanX (Saint) on Mar 07, 2021 at 15:16 UTC | |
by Polyglot (Chaplain) on Mar 08, 2021 at 00:04 UTC | |
by Polyglot (Chaplain) on Mar 07, 2021 at 23:23 UTC |
In Section
Seekers of Perl Wisdom