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
/
(?<!\\)(?:\\{2})*+\K`((?:\\.|[^`\\])+)`
/
g
Input 1
1
New
This regex matches strings bounded by the \` character `like this` and does not encounter problems with `escaped \`grave\` characters` inside a matched string or with \`escaped\` characters outside a string or with \\`edge cases` \\\\`such as` \\\`these\`.