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
/
"(((?<!\\)(\\\\)*\\"|[^"])*)"
/
gm
Input 1
1
New
"Woah. Look. A tab." "This \\\\\\\\\\\\\" is all one string" "This \"\"\"\" is\" also\"\\ \' one\"\\\" string." "These \\""are separate strings" "The cat said,\"Yo.\"" " \"Shouldn't it work on multiple lines?\" he asked rhetorically. \"Of course it should.\" " "If you don't have exactly 8 matches, then you've failed."
Extraction
"Woah. Look. A tab." "This \\\\\\\\\\\\\" is all one string" "This \"\"\"\" is\" also\"\\ \' one\"\\\" string." "These \\""are separate strings" "The cat said,\"Yo.\"" " \"Shouldn't it work on multiple lines?\" he asked rhetorically. \"Of course it should.\" " "If you don't have exactly 8 matches, then you've failed."