in reply to Looking for a flexible regex...
my $single_range = qr/(?:\d+-\d+)/amsx;
'1-5, 20-250, 37000-41000' =~
/(?: $single_range , [ ]? )* $single_range/msx;
An electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (433 votes). Check out past polls.