Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by bradcathey (Prior)
on Oct 09, 2016 at 16:23 UTC ( [id://1173595]=note: print w/replies, xml ) Need Help??


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

Interesting. Of course, it works, but I'm not sure what is happening with the:

"$password\0$sequences"

and the subsequent:

\0

in the regex. I've not see this before and am curious. Thoughts?

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^3: Regular expression to check for qwerty sequence in a password
by tybalt89 (Monsignor) on Oct 09, 2016 at 16:38 UTC

    I use the \0 as a marker or separator between the two sections of the string' Then I match for a three letter sequence that occurs before the marker, some characters, the marker, some characters, and finally the exact three letter sequence that was matched on the left of the marker. If the regex can match, then there is a three letter sequence in the password that matches exactly three keyboard letters in a row.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-19 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found