Regular Expressions 101

Community Patterns

Community Library Entry

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