Regular Expressions 101

Community Library Entry

0

Regular Expression
Python

r"
(?:[M|m](?:edical|EDICAL|rn|RN|r|R)|[P|p](?:atient|ATIENT))(?:\s+(?:record|Record|RECORD))?(?:\s+(?:id|identification|name|no|number|Id|Identification|Name|No|Number|ID|IDENTIFICATION|NAME|NO|NUMBER))?(?:[\s#]*)?0(?!0{7})\d{7}\b|\b0(?!0{7})\d{7}\s*(?:[M|m](?:edical|EDICAL|r|R|rn|RN)|[P|p](?:atient|ATIENT))(?:\s+(?:record|Record|RECORD))?(?:\s+(?:id|name|no|number|Id|Name|No|Number|ID|NAME|NO|NUMBER))?\b
"
g

Description

no description available

Submitted by anonymous - 7 years ago