Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It needs to match:
Of course, # is any number that can have commas in it. After the OF at the end, there can be any number of spaces before the last number. It seems the spaces change from time to time for some reason.Results <b># thru #</b> of #
This is my attempt
On top of that, the last number after the OF must be stored in the varible.m/Results <b>[\d,]+ thru [\d,]</b> of \s+ ([\d,])/
Can someone correct my code?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple regex with numbers
by Skeeve (Parson) on Sep 29, 2004 at 20:26 UTC | |
|
Re: Simple regex with numbers
by Zed_Lopez (Chaplain) on Sep 29, 2004 at 20:27 UTC | |
by Skeeve (Parson) on Sep 29, 2004 at 20:29 UTC | |
by Anonymous Monk on Sep 29, 2004 at 20:40 UTC | |
by JediWizard (Deacon) on Sep 29, 2004 at 20:46 UTC | |
by Jasper (Chaplain) on Sep 30, 2004 at 08:54 UTC | |
by Skeeve (Parson) on Sep 29, 2004 at 21:27 UTC | |
|
Re: Simple regex with numbers
by TedPride (Priest) on Sep 29, 2004 at 23:24 UTC |