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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(.)\1{2,}
Description
matches any string with characters repeated more than twice, sometimes used as fake input
Matches
aaaeee | ???????? | gooogle
Non-Matches
google | booboo
Author Rating: Not yet rated. Bernard Martin-Rabaud
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: to Eric Johnson
Name: Alex
Date: 3/31/2010 10:41:57 AM
Comment:
Did you find the solution to your problem?


Title: How can use this to disallow repeats in a string?
Name: Eric Johnson
Date: 9/24/2004 2:01:43 PM
Comment:
This is great, but I'm looking for a way to add an additional condition to one of the password regex's whereby I want to disallow more than 2 consecutive instances of any characters within the string. I'm already requiring several matches (at least one each number,lowercase and uppercase) and one non-match (no spaces allowed) using regexp_id 157.


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