Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-01-21 16:07
Flavor·PCRE (Legacy)

/
(-?\d{1,3}(,?\d{3})*(\.\d{2}?))(\D|$)
/
Open regex in editor

Description

Matches numbers that are likely to by financial amount. Does not consider the type of currency.

Submitted by elgehelge