my $single_range = qr/(?:\d+-\d+)/amsx; '1-5, 20-250, 37000-41000' =~ /(?: $single_range , [ ]? )* $single_range/msx;
In reply to Re: Looking for a flexible regex...
by daxim
in thread Looking for a flexible regex...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |