I need help with a problem I have, I need you to validate that there are no consecutive values; what I mean is that you cannot put:
123 or abc or 345 or cdf. etc
I currently have this regular expression:
^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[$#@&*_+-])(?!.*(.)\1{2})[a-zA-Z0-9$#@&*_+-]{8,15}$
Which validates the following: if it has uppercase, one lowercase, if it has a number, if it has special characters and that an identical character is not repeated more than 3 times, with a minimum length of 8 and a maximum of 15
Example:
HsEsp3$6_* --Valid
HsEsp3$666_* --invalid
The only thing I need is to validate that there are no consecutive values, can it be done with a regular expression or does it have to be done in another way???