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
/
(?<!`)(`(?:`{2})?)(?:(?!\1).)*?\1|"([^"]*)"
/
gm
Input 1
1
New
When copy/pasting commands that start with `cat << "EOF"`, select all lines at once (from `cat << "EOF"` to `EOF` inclusively) as they are part of the same (single) command Figuring out how to ignore the above quoted strings is an interesting "rabbit hole".