Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Regular expression to check for qwerty sequence in a password

by AnomalousMonk (Archbishop)
on Oct 12, 2016 at 01:28 UTC ( [id://1173785]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regular expression to check for qwerty sequence in a password
in thread Regular expression to check for qwerty sequence in a password

I have been a little surprised in reading the replies to see there is no one magical regex.

tybalt89's single regex given here not sufficiently magical?!? You're a hard monk to please!

... passwords made by ... hitting immediately adjacent letters, e.g., "asdf." They must be next to each other: so "asdg" wouldn't match.

tybalt89's regex can easily be modified so that  'asd' 'wert' 'vbnm' etc. are rejected and  'asdx' 'xasd' 'xasdx' etc. accepted. This is left as a penitential exercise for a very demanding monk.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-03-29 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found