Home
Tester
Reference
About
Pattern
(\w)(?<=(?=(?:.*\1){4})^.*)
Input
abc
d
bc
d
c
d
d
abcdbcdcdd
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
4
matches found in about
6
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
0
3
d
d
1
6
d
d
2
8
d
d
3
9
d
d
abc
d
bc
d
c
d
d
abc
d
bc
d
c
d
empty string
d
empty string