Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^((\s*-?\s*\d+\s*(d(ays?)?|h((ou)?rs?)?|m(in(ute)?s?)?|s(ec(ond)?s?)?)\s*,?\s*(and)?)*).*
"
i

Description

no description available

Submitted by anonymous - 8 years ago