Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?P<ID>[A-Z0-9]{4}|[0-9]{4})(?P<CATEGORY>000[A-Z0-9]{2})(?P<PHONE>[0-9]{8,9}|059\-[0-9]{6}|067\-[0-9]{6}|071\-[0-9]{7}|072\-[0-9]{7}|0\d\d\-[0-9]{3}\s[0-9]{3,4}|\+[0-9]{2}\s\([0-9]{3,4}\)\s[0-9]{3,4}|0[0-9]{1}\-[0-9]{7})
"
gm

Description

no description available

Submitted by anonymous - 6 years ago