Regular Expressions 101

Community Patterns

Simple scientific notation

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 - 8 months ago