Dear All,

I'm taking a (highly belated) first look at Perl today. From a background
in Python, I'm coming to Perl, primarily out of curiosity with what it can
do with regular expressions.

To get to the point— is it possible to match a character class with a
repeater that requires an exactly *n* OR *m* matches, rather than the
traditional *{n, m}*. I've taken a look at
http://perldoc.perl.org/perlrequick.html#Using-character-classes, which
implies this wouldn't be possible? But, putting faith Perl's reputation for
inherent quirkiness... if possible, I'd love to know what a solution would
look like?

Adam

Reply via email to