Perl Monk, Perl Meditation | |
PerlMonks |
Regular Expression Piecesby Angel (Friar) |
on May 07, 2003 at 22:06 UTC ( [id://256394]=perlquestion: print w/replies, xml ) | Need Help?? |
Angel has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks I have tried to get this to work, I am trying to extract the pieces from a string that have the pattern [something]. I am trying to write a mail merge program and another mail merge program :) has this syntax Ideally I thought that the $1....$n held the pieces that the regex found that match. But I am only getting the first match ( since I turned off greedy matching ) and the others are not being found. Any ideas on what I am missing do I need to copy the string find the match delete it from the string and find again until the regex returns false?
What I would like out is:<\p>
Back to
Seekers of Perl Wisdom
|
|