Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
@"
(\b\w+(?:\s+\w+)*?)(,?\s*\1)+\b
"
gm
Test String
New
I, I, I am really wanting to go, but I I am not, am not am notty able to do it. a b a b a b a b
Extraction
Processing...