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
In reply to Re: perl equiv regex for C strtol
by toolic
in thread perl equiv regex for C strtol
by Largins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |