Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

Find single dollar delimited LaTeX equations, for use with e.g. KateX

Submitted by drewsberry - 10 years ago