in reply to
Wildcard?
You could use character classes in your regex
if($string =~ /^R[a-zA-Z]{2}\z/) { ... }
[download]
So that will match 'Rat', 'Rod' and 'Ran' but not 'R4t', 'R0d' or 'RA\n'. For more info on regular expressions see the
perlre
manpage.
HTH
_________
broquaint
Comment on
Re: Wildcard?
Download
Code
In Section
Seekers of Perl Wisdom