Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?<![\$])\$\$([^$]+)\$\$(?!\$)
"
g

Description

Find all instances of a double dollar delimited centred LaTeX equation, for use with e.g. KaTeX

Submitted by drewsberry - 10 years ago