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
/
(['"])(?:\\[\s\S]|(?!\1)[^\\])*?\1
/
g
Input 1
1
New
We are looking for phrases within quotes and it can be multiline "check we have a \"return\" here but this line is still part of previous one 'a' string". It breaks once we have another 'testing with single \'quotes\' "surrounding" double quotes';
Substitution
We are looking for phrases within quotes and it can be multiline "check we have a \"return\" here but this line is still part of previous one 'a' string". It breaks once we have another 'testing with single \'quotes\' "surrounding" double quotes';