Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[A-Z]{1,3}[0-9]{1,4}\.?([0-9]{1,2})?\ ?\.?[A-Z]{1}[0-9]{1,}.?\ ?([A-Z]{1,2}[1-9]{1,})?\ ?([0-9]{1,})?
/
gm

Description

Matches Library of Congress Call Number

Submitted by Andy F - 3 years ago