Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

Capture a number out of a string. Supports positive/negative, decimal, and Scientific Notation

Submitted by Brombomb - 3 years ago