Regular Expressions 101

Community Library

Community Library Entry

-3

Regular ExpressionOpen Workspace

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

Description
Created·2015-06-10 19:26
Type·Match
Flavor·Python

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

Submitted by sharkey
Open Workspace