Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?=.*(START))(?=.*(END))(?:(?:\1|\2)|(?!^)\G)\h+.*?\b(\w{4,})(?=.*?(?:(?:\1|\2)))
/
g
Input 1
START one two three fifth END END one two three fifth START START nothing should be selected here START