Matching delimiters in a string with regular expressions

I am working on converting IJulia notebooks to markua source files. Like markdown cells in a IJulia notebook, markua uses a superset of Markdown but not always with the same convention. In Jupyter markdown LaTeX expressions are delimited with $. In Markua they should be delimited with backquotes, like a code span, followed by a single $.

This substitution seems like a job for regular expressions. An alternative is just to split the string on the '$' character and sew the pieces back together. Suggestions?