in reply to
Regex matches the same pattern alternatively
It's due to your misuse of /g. Get rid of the /g.
Comment on
Re: Regex matches the same pattern alternatively
Replies are listed 'Best First'.
Re^2: Regex matches the same pattern alternatively
by
regexmegex
(Initiate)
on Oct 23, 2011 at 06:59 UTC
Thank you ikegami! I have a lot to learn.
[reply]
In Section
Seekers of Perl Wisdom