Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
提取有效小数,如果是0,则只保留1个0
Open Workspace
Python
Match
Created 2019-12-18 15:16
0
Regular Expression
r"
(
\d
+
\.
(
[
1
-
9
]
{3}
|
[
1
-
9
]
{2}
|
[
1
-
9
]
|
0
{1}
)
)(
\d
*
)
"
gm
Description
No description provided.
Submitted by
Anonymous