Regular Expressions 101

Number Extract

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

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

Description

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

Submitted by Anonymous