Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: regex elegance contest - validate a pw

by jsalvata (Initiate)
on Feb 18, 2004 at 00:01 UTC ( [id://329806]=note: print w/replies, xml ) Need Help??


in reply to regex elegance contest - validate a pw

/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{5,8}$/
merlyn, MidLifeXis, and tye gave me the idea in their answers to Operator for "these expressions, in any order". Hope you like it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://329806]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-18 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found