Regular Expressions 101

Community Patterns

float with comma or point

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 - 3 years ago