RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Nate Man
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials