Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
'([^'}{\\]*(?:\\')?[^'}{\\]*)'(?=(?:[^'}{\\]*(?:'[^'}{\\]*(?:\\')?[^'}{\\]*'?)?[^'}{\\]*)\})
/
gm
Test String
New
'dont want' don\'t want {dont want 'want this', 'want this, je m\'appelle Robert', dont want} don\'t want 'dont want' {'want this'} 'dont want' and 'don\'t want' {'want this' and 'want this, je m\'appelle Robert'}
Substitution
Processing...