Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-09-18 15:21
Flavor·Python

r"
(?<![\$])\$\$([^$]+)\$\$(?!\$)
"
g
Open regex in editor

Description

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

Submitted by drewsberry