in reply to Re: Check a string for consecutive digits
in thread Check a string for consecutive digits
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check a string for consecutive digits
by johngg (Canon) on Nov 28, 2015 at 13:26 UTC |