in reply to perl equiv regex for C strtol
Here is one way:for exmple from [[(60)(3)]] i want the 60 and then the 3, one at a tim +e
my $s = '[[(60)(3)]]'; my @nums = $s =~ /\((\d+)\)/g;
See also: perlre
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl equiv regex for C strtol
by Largins (Acolyte) on May 01, 2012 at 01:19 UTC |