good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: regular xpression stuffby count0 (Friar) |
on Jan 21, 2002 at 00:44 UTC ( [id://140241]=note: print w/replies, xml ) | Need Help?? |
If I'm understanding the question correctly, this will not work. It seems that the inquiring monk wants to match each letter once and only once. /^[bat]{3}$/ could match 'ttt', 'bba', 'aaa', etc. If that *is* undesirable, Masem's excellent reply is probably the best way to go.
In Section
Seekers of Perl Wisdom
|
|