Regular Expressions 101

Library entries

number input reg

Vote

0

Regular Expression
javascript

/
^-?(0(\.\d*)?|[1-9]\d*(\.\d*)?)?$
/
gm

Description

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