Regular Expressions 101

Library entries

Match US Currency Amount

Vote

1

Regular Expression
pcre

/
\$?\s*(\d{1,3}(,\d{3})+|\d+)(\.(\d\d))?
/

Description

Loading markdown...
Submitted by anonymous - 8 years ago