Regular Expressions 101

Library entries

US Currency Format

Vote

11

Regular Expression
javascript

/
^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(\.[0-9][0-9])?$
/
mg

Description

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