Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^-?(\d*)(\.)?(\d*)?$
/
gm

Description

Find that given string is number or not.

Submitted by anonymous - 3 years ago