Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
\d+(?:[.]?\d+(?:\([a-z]+\))*)?
"
gm

Description

From the full expression of sub clause or clause referred, it extracts the actual numbers and returns the list of them.

Submitted by anonymous - 5 years ago