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
/
("(?:[^"\\]|\\.)*")|('(?:[^'\\]|\\.)*')|[\S]+
/
g
Input 1
1
New
set foo "bar\" baz" asdflkj set foo 'bar"" baz' # this is a comment set foo 'bar # nested comment' set foo "bar'"asdfasdf"' baz" set foo 'bar "boom \'clap\'" baz'; get foo
Substitution