Thanks for that, it looked like complete gibberish 20 minutes ago but after some searching I have a handle on most of it now.
I've reduced it down to this:
exit 1 if $password =~ /(?x) ( \d ) (??{ ( $1 + 1 ) . ( $1 + 2 ) . ( $1 + 3 ) })/
Can this be easily adapted to allow an arbitrary number of consecutive digits? In my current code, the limit is configurable.
In reply to Re^2: Check a string for consecutive digits
by Anonymous Monk
in thread Check a string for consecutive digits
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |