Community Patterns

Community Library Entry

-3

Regular Expression
Created·2015-06-10 19:26
Flavor·Python

r"
([0-9]*\.?[0-9]*)\s*%
"
gmi
Open regex in editor

Description

Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found

Submitted by sharkey