Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

7

Regular Expression
ECMAScript (JavaScript)

/
([£\$])*([\d,.]*)
/
g

Description

Extracts values of the form £nnn,nnn.nn or $nnn.nnn from text

Submitted by Simon Gardner - 9 years ago