XP is just a number | |
PerlMonks |
Re: REgular expression to check the string that allows "a","b" and "c" to occur only once in any order.by AK108 (Friar) |
on Dec 12, 2007 at 13:11 UTC ( [id://656615]=note: print w/replies, xml ) | Need Help?? |
This isn't a regex, but I don't think anyone mentioned it.
(My initial thought was to add up the ord() values of the characters. That would work too, but wouldn't be as concise since there isn't a reduce operator in Perl 5.)
In Section
Seekers of Perl Wisdom
|
|