Regular Expressions 101

Library entries

Troy

Vote

0

Regular Expression
python

"
(?:[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

Loading markdown...
Submitted by anonymous - 4 years ago