Regular Expressions 101

Library entries

Decimal Input

Vote

0

Regular Expression
javascript

/
^-*\.+$|[^-0-9\.]|^\.+(?!$)|^0+(?=[0-9]+)|\.(?=\.|.+\.)|(?!^)-
/
g

Description

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