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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
\b(\w+)\s+\1\b
Description
Uses backreferences and word boundaries to match repeated words seperated by whitespace without matching a word with the same ending as the next words beginning.
Matches
Tell the the preacher | some some | hubba hubba
Non-Matches
once an annual report | mandate dated submissions | Hubba hubba
Author Rating: Not yet rated. Sean Carley
   Displaying page 1 of 1 pages; Items 1 to 1

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