check for repeating digits

sdlangers

Well-known member
Joined
Dec 3, 2002
Messages
118
hi,

i have a 10 digit random number generated

i want to check that there are the same digit is not in the number 3 times in a row

e.g. 1224526890 is ok, but 1222426890 is not ok because 2 is there 3 times in a row

i guess some type of regular expression can do this, but i dont know how to use these or which one to use

thanks for your help
 
Back
Top