Regular Expressions 101

Sponsors

Library entries

0
pcre2

Picking 2nd 1st Line

Picking 2nd 1st Line
Submitted by Picking 2nd 1st Line - 13 days ago
0
pcre2

Picking 1st Line

Picking 1st Line
Submitted by Picking 1st Line - 13 days ago

Find consecutive duplicate words

Vote

5

Regular Expression
python

"
\b(\w+)\s+\1\b
"
gi

Description

Loading markdown...
Submitted by anonymous - 6 years ago