Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
\b(\w+)(?!\s+\1\b)\b
/
gmi

Description

Removes all words that are NOT followed by a space, followed by the same word

Submitted by anonymous - 3 years ago (Last modified 3 years ago)