Regular Expressions 101

Community Patterns

DOWP Log File Dispense amount parser

1

Regular Expression
PCRE (PHP <7.3)

/
(?:\d*\.)?\d+$
/
mg

Description

Looks through the log and extracts all the dispense amounts in the given text

Submitted by BStevenson - 9 years ago