mecrazycoder has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Good Morning to all. I have listed few questions below,please answer those question
$filecontent="12345-123456 is number. 98945-221349" if($filecontent=~m/[0-9]{5}-[0-9]{6}/) print "Match found";
It is working fine.But if want to extract all phone numbers that are matched in single line, What i have to do?
Thanks in advance
20090811 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Few Doubts
by JadeNB (Chaplain) on Aug 07, 2009 at 06:16 UTC | |
|
Re: Few Doubts
by hominid (Priest) on Aug 07, 2009 at 12:57 UTC | |
|
Re: Few Doubts
by vonersnae (Novice) on Aug 07, 2009 at 08:28 UTC | |
|
Re: Few Doubts
by Anonymous Monk on Aug 07, 2009 at 06:17 UTC |