Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?:[^{\n]|{(?!{)|{{2}(?:dog|cat)}{2})+$
/
gm
Input 1
1
New
I own a {{dog}} and {{cat}} but not fish I own a fish I own a {{cow}} I own a {{dog}} and a {{cow}} I own a {{cat}} hah I {own} a {{dog}} I {own} a {{cat}} and {cow} I own a {cow}
Extraction