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.if($string =~ /^R[a-zA-Z]{2}\z/) { ... }
_________
broquaint
In reply to Re: Wildcard?
by broquaint
in thread Wildcard?
by bobothesmart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |