Community Patterns

Community Library Entry

-3

Regular Expression
Created·2014-07-13 16:14
Flavor·ECMAScript (JavaScript)

/
-?\d+\.?\d*
/
g
Open regex in editor

Description

Gets all numbers in a string. This includes positive and negative numbers aswell as integers and floats.

By: http://www.benlorantfy.com/

Submitted by Ben