Regular Expressions 101

Community Patterns

Your search did not match anything

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 - 9 years ago