in reply to Regex problem
my @values = $line =~ m{(\d+(?:\.\d*)?)(?=\s*,|\z)}g;
seems to do the right thing.
I hope this is of use.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex problem
by halley (Prior) on May 10, 2007 at 17:09 UTC |