Regular Expressions 101

Community Patterns

Extract the actual sub-clauses numbers referred in the cross reference

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