Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(\d*?)[\s-]*(\d+)\s*/\s*(\d+)
"

Description

mixed or simple fraction with whitespace, optional dash as separator

Submitted by anonymous - 8 years ago