in reply to Re: Check a string for consecutive digits
in thread Check a string for consecutive digits
All posts at the time of writing, including the OP, seem to assume that passwords only contain digits; at least, that's all that's being tested.
The code above produces the same output as yours with your test set and suitable modification to the print statement and $min set to 3.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check a string for consecutive digits
by kcott (Archbishop) on Nov 26, 2015 at 10:51 UTC | |
by AnomalousMonk (Archbishop) on Nov 26, 2015 at 16:06 UTC | |
by kcott (Archbishop) on Nov 27, 2015 at 05:21 UTC |