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
`
\x60((?:\\.|[^\x60\\])+)\x60
`
g
Input 1
1
New
This is a `test` of a pattern that matches `strings like \`this\`` that are delimited with the grave character. However, I'm not aware of a way to avoid situations where a preceding escaped \` causes later `problems` without lookarounds, but this post seems to be helpful: `https://stackoverflow.com/questions/33514971/how-to-simulate-negative-lookbehind-in-go`