Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(CA|US)?\$((\d{0,})(\.\d{0,})?)([M|B]?)((\s|&nbsp;|<br\s*\/?>)*\/(\s|&nbsp;|<br\s*\/?>)*(MTH|QTR|Y|YEAR) ?)?$
/
gm

Description

US|CA dollar regexp

Submitted by cagatayucar - 2 years ago