Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

US Currency Format

12

Regular Expression
ECMAScript (JavaScript)

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

Description

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