Regular Expressions 101

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

This validator does NOT handle strings that can be interpreted as a number (expl. "0,00")

Submitted by anonymous - 3 years ago