Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?i)(ejection fraction|L?V?EF)[\s\w:<>=]+(\d\d)[\d-]*%?
"
gm

Description

A regex designed to capture the ejection fraction from clinical notes

Submitted by anonymous - 4 years ago