in reply to regular xpression stuff
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regular xpression stuff
by count0 (Friar) on Jan 21, 2002 at 00:44 UTC | |
by Parham (Friar) on Jan 21, 2002 at 01:01 UTC |