Win has asked for the wisdom of the Perl Monks concerning the following question:
I have tried the following:00CH,Gateshead MCD,619,172.90,158.94,186.87,,537,87.42,79.61,95.23,,11 +56,126.89,119.29,134.50
if ($_ =~ /^(00CH,Gateshead MCD)/){ my $Place = $1; if ($line =~ /^$Place\,(\d(\d|\.)*)\,(\d(\d|\.)*)\,(\d(\d|\.)*)\ +,(\d(\d|\.)*)\,\,*(\d(\d|\.)*)\,(\d(\d|\.)*)\,(\d(\d|\.)*)\,(\d(\d|\. +)*)\,\,*(\d(\d|\.)*)\,(\d(\d|\.)*)\,(\d(\d|\.)*)\,(\d(\d|\.)*)/) { # $first = $1; # etc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex problem
by gaal (Parson) on May 10, 2007 at 08:50 UTC | |
|
Re: Regex problem
by Samy_rio (Vicar) on May 10, 2007 at 08:52 UTC | |
|
Re: Regex problem
by johngg (Canon) on May 10, 2007 at 09:19 UTC | |
by halley (Prior) on May 10, 2007 at 17:09 UTC | |
|
Re: Regex problem
by RL (Monk) on May 10, 2007 at 09:11 UTC |