in reply to Re^2: How does one get all possible matches from regex?
in thread How does one get all possible matches from regex?
They're different: /X/g does non-overlapping matches; /X(?{print$&})(?!)/ does all matches. It depends what you want.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How does one get all possible matches from regex?
by LanX (Saint) on Dec 10, 2013 at 16:27 UTC |
In Section
Seekers of Perl Wisdom