laziness, impatience, and hubris | |
PerlMonks |
regex maching unique character setby mce (Curate) |
on Jan 30, 2003 at 11:22 UTC ( [id://231260]=perlquestion: print w/replies, xml ) | Need Help?? |
mce has asked for the wisdom of the Perl Monks concerning the following question:
Hi, This question might have been asked a million times, but here it is. I want a regex to fail if there is: 1. A character not in the set 2. A character twice in the set
f.e.
But true if I now worked around with a map or grep, but I think it should be doable in a single regex. The sequence of characters doesn't matter
Thanks for your help
Back to
Seekers of Perl Wisdom
|
|