No such thing as a small change | |
PerlMonks |
How does one get all possible matches from regex?by supriyoch_2008 (Monk) |
on Dec 10, 2013 at 03:08 UTC ( [id://1066361]=perlquestion: print w/replies, xml ) | Need Help?? |
supriyoch_2008 has asked for the wisdom of the Perl Monks concerning the following question: Hi Perlmonks, I am interested to get all the possible matches from a string using regex. But I have got fewer matches than expected with the perl script g1.pl. I have given the script, the incorrect results and the expected results below. I request perlmonks to provide suggestions how to write the regex to get the correct results. Here goes the script:
I have got the incorrect results like:
The correct results should be: Matches are:
Back to
Seekers of Perl Wisdom
|
|