Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Regular expression to check for qwerty sequence in a passwordby shadowsong (Pilgrim) |
on Oct 09, 2016 at 17:02 UTC ( [id://1173600]=note: print w/replies, xml ) | Need Help?? |
Hi brad, You may want to be a bit more specific in your definition of sequences. From what you've said it isn't clear what you mean. for e.g. would the sequence fdsa be acceptable? What about Asdf or asDf? Either way; if I were to divine what you're trying to accomplish, i.e. to match a string of at least three chars that does NOT contain a multi-char sequence like "asd" or "wer" - I would tweak your if conditional and reg exp to something like this:
Cheers,
In Section
Seekers of Perl Wisdom
|
|