Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
[+-]?\d*\.?\d+([Ee]+[+-]?\d+)?
/
gm

Description

allowed: 123 123.234 123.234E13 +123.234E-412 -.234E-12

Submitted by Romzikon - a year ago