Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegExp pattern match question: matching 3 consecutive characters

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to write a regular expression to match a password field. The password cannot have 3 consecutive identical characters. I tried to use the expression: (.)\1
This only matched two characters.

Any help with this would be greatly appreciated.

-tl
 
Try [tt](.)\1\1[/tt] then!
I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top