Regular Expressions 101

Community Patterns

123...7

Community Library Entry

0

Regular Expression
Python

r"
^\s{7}([-A]?\d+)\s+((.|\n)*?)\n^\s{24}([A-Z]{0,2}\d{3}(\.\d+)?(\s(\w+))?)
"
gm

Description

Matches entries in a library catalogue.

Submitted by anonymous - a year ago