Regular Expressions 101

Community Patterns

1...34567...105

Community Library Entry

4

Regular Expression
PCRE (PHP <7.3)

/
(?P<mrn>\d{8}).*\s+(?P<lastname>\D+),(?P<firstname>\D+)\s+(?P<dob>[\d\/]{10})\s(?P<age>\w+)\s(?P<sex>\w)
/

Description

Text output produced by reading the QR code present on patient stickers created by Epic (R) medical record software

Submitted by MeWa - 9 years ago