Regular Expressions 101

Library entries

提取有效小数,如果是0,则只保留1个0

Vote

0

Regular Expression
python

"
(\d+\.([1-9]{3}|[1-9]{2}|[1-9]|0{1}))(\d*)
"
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago