Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i need to extract each of numbers and print to a new file. I have tried the below put this only finds the first occurance then dies?req=44...something...req=56...req=24
while (<>) { if (m/req\=(\d+){1,400}/) {print OUT "$1\n"}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern matching
by ikegami (Patriarch) on Jun 27, 2005 at 14:43 UTC | |
by Anonymous Monk on Jun 27, 2005 at 14:48 UTC | |
|
Re: pattern matching
by Ido (Hermit) on Jun 27, 2005 at 14:45 UTC | |
|
Re: pattern matching
by JediWizard (Deacon) on Jun 27, 2005 at 14:48 UTC | |
|
Re: pattern matching
by GrandFather (Saint) on Jun 28, 2005 at 05:28 UTC |