Title |
Test
Find
Pattern Title
|
Expression |
0{3,}|1{3,}|2{3,}|3{3,}|4{3,}|5{3,}|6{3,}|7{3,}|8{3,}|9{3,} |
Description |
An expression to look for numbers that repeat 3 or more times in succession. |
Matches |
122234567 | 1234444444 | 12345999 |
Non-Matches |
123456 | 1335855 | 1983464 |
Author |
Rating:
Nate Man
|
Source |
|
Your Rating |
|
Title: shorter way
Name: dave
Date: 11/30/2005 10:12:18 AM
Comment:
wouldnt it be much shorter to generate a subset first an then look for the subset 2 times
i'm not a regex-pro but i'd try sth. like
(\d?)\1{3,}
Title: Simpler version
Name: Michael Ash
Date: 11/18/2005 5:17:01 PM
Comment:
The pattern (\d)\1{2,} works match the same.