Hi,
I have requirement to validate 4-digit pin. Below are the requirement of the 4-digit number
1. pin should not allow sequential numbers
2. pin should not allow same numbers
example: 1234 or 4321 or 0000, 1111 or 4444 or 2222 or 3333 numbers are not allowed as a card pin.
can anyone please help me how to write logic for the validation.
thanks in advance!
Discussion posts and replies are publicly visible
a!localVariables(local!a:regexmatch( pattern:"^(?!.*?(?:012|123|234|345|456|567|678|789|987|876|765|654|543|432|321|210|(\d)\1\1))\d{4}$", searchString:9989, regexFlags:"gms"),local!a)
Hi , can you check the above code by placing in expression rule working fine for me .if you don't find regexmatch() in your rule , then add "Regular expression functions" plugin