Regular Expressions 101

Community Patterns

Prescription line

1

Regular Expression
PCRE (PHP <7.3)

/
(\w+)\s([\d]+)(%|\w+)\s(\w+)\s(\w+)\sx\s(\d)\/(\d+)
/

Description

Line of text in a medical presciption

Submitted by Jermaine McFarlane - 8 years ago