but what's the reason that the original author wants this in a single RE?
Malcolm V wrote:
Ben de Luca (bedel) wrote:
probably want to write a script to write the regex :)
10 points for the first code snippit that generates it !!!
On 04/08/2004, at 3:43 PM, Alexander Samad wrote:
On Wed, Aug 04, 2004 at 02:52:28PM +1000, Stuart Cooper wrote:
Must match 3 out of 4 rules
Must much at least 3 out of 4 rules I would imagine, the more oblique the password the better.
1) Contain 1 or more Uppercase char 2) Contain 1 or more Lowercase char 3) Contain 1 or more numeric 4) Contain 1 or more punctuation
looking for 1 regex statement and perlre is the standard I think,
Hmm, there are four cases for a match: 1,2,3 1,2,4 1,3,4 2,3,4
For each case there are six different orders the matches can be made in. eg for 1,2,3 1,2,3 1,3,2 2,1,3 2,3,1 3,1,2 3,2,1
This gives you a regex with 24 different matches OR'ed together ... o_O
Only Dr Frankenstein would create such a monster.
Cheers, Malcolm V.
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
