|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re^3: Regex question - identify which pattern comes firstby LanX (Saint) |
| on May 02, 2026 at 13:28 UTC ( [id://11167679]=note: print w/replies, xml ) | Need Help?? |
|
> that is an amazingly simple solution! Did you try it? These (??{ $first = 1; }) won't work because they'll include 1,2 or 3 into the regex. Try (?{ $first = 1; }); with a single ? instead.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||