since you want only those letters to exist, check from beginning to end that word for each letter, the {3} should be the number of letters in that word$var = 'bat'; if ($var =~ /^[bat]{3}$/) { print "match"; } else { print "fail"; }
In reply to Re: regular xpression stuff
by Parham
in thread regular xpression stuff
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |