in reply to using regex to capture a string and an array
my ($site, $digits) = $String =~ m{ ^(.{3}) # the site code .+? # noise, as little as possible though (\d+) # the digits (keepers) \. # the delimiter }x;
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using regex to capture a string and an array
by wol (Hermit) on Nov 02, 2009 at 16:26 UTC |