in reply to
Looking for a flexible regex...
$re = qr/^(\d+-\d+)(,\s*\d+-\d+)*$/;
Is that what you're after?
Comment on
Re: Looking for a flexible regex...
Download
Code
In Section
Seekers of Perl Wisdom