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
/
(?:^|called\s+)\K[A-Z][a-z]*(?:\s+[A-Z][a-z]*)*?(?=(?:\s+and)?\s+can\s+overcome)
/
gm
Input 1
1
New
this animal is called Hippo and can overcome no more than is called Hippo and can overcome no more than Hippo and can overcome no more than Hippo can overcome no more than this animal is called Grey Rabbit and can overcome no more than this animal is called Small Grey Rabbit can overcome no more than This is a test. Animal is called Small Grey Rabbit can overcome no more than
Substitution
this animal is called Hippo and can overcome no more than is called Hippo and can overcome no more than Hippo and can overcome no more than Hippo can overcome no more than this animal is called Grey Rabbit and can overcome no more than this animal is called Small Grey Rabbit can overcome no more than This is a test. Animal is called Small Grey Rabbit can overcome no more than