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
/
^(?:[^"'\n]*(?:"(?:[^"\n]|"")*"))*[^"]*'(.*)$
/
gm
Input 1
1
New
Working - This is a test 'This should be captured Working - "this is a test" 'This should be captured Not Working - "this is a test" 'This should be "captured" Not Working - This is a test 'This should be "captured" Working - "this is a test 'this should not capture'" 'this should capture Working - "this isn't a test" 'this should capture And "this"? Does it "work" or doesn't it? ' Comment "Having ""quoted"" quotes couldn't work, could they"? "Yeah, they do!" ' Great