Regular Expressions 101

Library entries

Validate Float

Vote

1

Regular Expression
pcre2

/
^-?(\d|[1-9]+\d*|\.\d+|0\.\d+|[1-9]+\d*\.\d+)$
/
gm

Description

Loading markdown...
Submitted by Tanmay Chakrabarty - cse.tanmay@gmail.com - 5 months ago