Regular Expressions 101

Community Patterns

Capture Inline LaTeX

1

Regular Expression
PCRE (PHP <7.3)

/
{tex\b([^{}]*({[^{}]*?([^{}]|(?R))*[^{}]*?}[^{}]*)*[^{}]*)}
/
gm

Description

no description available

Submitted by ProfFan - 8 years ago