Regular Expressions 101

Library entries

保留小数点后两位

Vote

0

Regular Expression
javascript

/
^\d{1,2}(\.\d{1,2})?$
/
gm

Description

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