Regular Expressions 101

Community Patterns

html code for LaTeX math expression

0

Regular Expression
Python

r"
\<code\>(.*?)\<\/code\>
"
gm

Description

Finds any value inside the HTML <code>...</code> in order to replace with $...$

Submitted by anonymous - 5 years ago