my ($numbers) = 'cms 111,222' =~ /^cms[= ]?([0-9]+(?:[ ,][0-9]+)*)\z/; my @numbers = $numbers =~ /([0-9]+)/g;
In reply to Re: multiple regex matches
by ikegami
in thread multiple regex matches
by randos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |