In the address book field, I have the zip field. In this field cep, I need to do some validations:
1 - Do not allow the user to enter a sequence with two numbers alternating with each other:
EX 1: "12121212"
EX 2: "12312312"
2 - Do not allow the user to enter a sequence of a certain number:
EX: "111111111"
How could I do this? I could not make a regex that would handle both situations.