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
数字/货币金额 (只支持正数、不支持校验千分位分隔符)
Open Workspace
JavaScript
Match
Created 2020-03-22 06:35
0
Regular Expression
/
(?:
^
[
1
-
9
]
(
[
0
-
9
]
+
)?(?:
\.
[
0
-
9
]
{1,2}
)?
$
)
|
(?:
^
(?:
0
){1}
$
)
|
(?:
^
[
0
-
9
]
\.
[
0
-
9
]
(?:
[
0
-
9
]
)?
$
)
/
Description
数字/货币金额 (只支持正数、不支持校验千分位分隔符)
Submitted by
Anonymous