Edit: removed text that caret is obsolete.$line =~ s/^ ( (?= .*? $regex_1 ) .*? $regex_1 #FIRST PRIORITY | (?= .*? $regex_2 ) .*? $regex_2 #SECOND PRIORITY ) /something/gmx;
In reply to Re: How to enforce match priority irrespective of string position
by rsFalse
in thread How to enforce match priority irrespective of string position
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |