Regular Expressions 101

Library entries

Number with two max possible decimals

Vote

0

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Juanma - https://github.com/juanmaa1414 - 7 years ago