I cant realize and find a regular expression to detect sequences of repeated numbers (more than 2 times) like:
1111 or
a1111 or
test4555
Someone can help me please?
I cant realize and find a regular expression to detect sequences of repeated numbers (more than 2 times) like:
1111 or
a1111 or
test4555
Someone can help me please?
You can write:
/(\d)\1\1/
where \d means "a digit", (...) means "capture (remember) what ... matched", and \1 means "what the first (...) captured".