Regular Expressions 101

Community Patterns

Float number with e notation

0

Regular Expression
ECMAScript (JavaScript)

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

Description

Matches: 1.0 .01 100. 1e-10 1.0e3 0.2e10

Submitted by anonymous - 5 years ago