"be consistent" | |
PerlMonks |
Re: Help with placing the matches of a regex into an Arrayby JavaFan (Canon) |
on Apr 28, 2012 at 20:06 UTC ( [id://967859]=note: print w/replies, xml ) | Need Help?? |
Replacing [.]+ with .+ appears to work. For now. But considering that you have a trailing /g, you are expecting multiple matches on a line.
Your pattern will never match more than once, due to the greedy .+. I suggest to use as your pattern match.
In Section
Seekers of Perl Wisdom
|
|