Regular Expressions 101

Library entries

All numbers except all flavors of 0

Vote

1

Regular Expression
javascript

/
^(\+|\-)?(?!0*(\.0+)?$)(\d+|\d*\.\d+)$
/
gm

Description

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