Regular Expressions 101

Community Patterns

1...56789...902

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