in reply to Re: How to enforce match priority irrespective of string position
in thread How to enforce match priority irrespective of string position
And that method worked! (Though I've had to restructure a bit to accommodate, as that was not in a simple substitution form.) I don't mind doing whatever is necessary to get things working, though...so thank you very much! I'll certainly upvote this when I get my next day's rations.
This part seems to be the crucial bit: (?=Point|\z) (?!\1). I find this sort of syntax confusing because it always seems to me that the "Point" here should have precedence over anything coming afterward in the regex sequence, in this case the "\1" backreference. If "Point" is already detected from the forward assertion, why can it be matched again (overlapped) by this reference, even if in the negative?
Well, no complaints at the moment, certainly, as at least the script is now past this hurdle. Thank you.
Blessings,
~Polyglot~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to enforce match priority irrespective of string position
by tybalt89 (Monsignor) on Mar 08, 2021 at 02:25 UTC | |
by Polyglot (Chaplain) on Mar 08, 2021 at 02:37 UTC | |
by eyepopslikeamosquito (Archbishop) on Mar 08, 2021 at 03:30 UTC |