Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^-$|^-?(\d|(\d+(,|.)?\d+))$
/
gi

Description

if you need positive or negative float number with comma or point

Submitted by Deadula - 4 years ago