Regular Expressions 101

Community Patterns

1...45678...900

Community Library Entry

0

Regular Expression
Python

r"
(?P<MC>mc16[acde])\.(?P<SHORTNAME>.+?)\.(?P<MXAODFLAVOUR>MxAOD.+?)\.(e[0-9]+_s[0-9]+_r[0-9]+)?_?(?P<PTAG>p[0-9]+)(?:\.(?P<HTAG>h[0-9]+(?:-\w+?)?))?(?:(?:\.|_)(?P<N>[0-9]+))?\.root
"
gm

Description

no description available

Submitted by anonymous - 6 years ago