Home
Tester
Reference
About
Pattern
(\b\w+\b)(?=.*?\b\1\b)(?<!\b\1\b.*?\1)
Input
A
B
C a b B
A B C a b B
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
2
matches found in about
0
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
0
0
A
A
1
2
B
B
A
B
C a b B
empty string
A
whitespace
B
C a b B