I gave my class a regex exercise to figure out a set of expressions that could match the password rules my bank uses. Here are the rules
Nobody (including me)has come up with anything simple for the forth rule (no 3 sequential identical). I was thinking that I could use backreferences and compare them in a loop but was wondering if there was a simpler way.
Time flies like an arrow, fruit flies like banannas
In reply to Regex Match for 3 repeated word characters by hsweet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |