Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[+-]?\d*\.?\d+?$
/
gm

Description

Se soportan los números de la forma +2.3, +.34, 2.3, .5, -3.3, -.3

Submitted by anonymous - a year ago