Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
\\(?P<command>(re)?newcommand)\{(?P<name>\\\w+)\}(\[(?P<num>\d+)\])?\{(?P<definition>.+)\}
"
u

Description

no description available

Submitted by Mattia Penati - 8 years ago