Regular Expressions 101

Sponsors

Library entries

0
pcre2

HTML Tag Selector

T
Submitted by Rahul - 14 days ago

提取有效小数,如果是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