|laziness, impatience, and hubris|
regex elegance contest - validate a pwby tos (Deacon)
|on Feb 11, 2004 at 10:05 UTC||Need Help??|
tos has asked for the wisdom of the Perl Monks concerning the following question:
a colleague of mine came to me with a question on a special regex which has to decide whether a given pw is valid or not. The pw has to suffice the following restrictions:
This solution is quite good but appears a little bulky to me. Especially a more compact regex would be nice. Perhaps the length-validation could be made within the regex too.
I wonder who has THE solution which combines shortness and elegance in a tremendous way ;)
janitored by ybiC: Balanced <readmore> tags, minor format cleanup for legibility