Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^[0-9]+\.?[0-9]*$
/

Description

accepts 1; 1.1; 112315.23135

Submitted by MS - 9 years ago