Regular Expressions 101

Community Patterns

There does not seem to be anything here

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)