Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

Number extract test. Accepts integers, floats, portions and negatives.

Submitted by anonymous - 6 years ago