troubleshooting Question

Regular expression help for currency value. Need to strip $ . and ,

Avatar of Steve Hougom
Steve HougomFlag for United States of America asked on
JavaScriptRegular Expressions
5 Comments2 Solutions10 ViewsLast Modified:
I need a Regular expression to move currency symbol, comma and decimals from a value like this:
$12,120.25
Im basically doing a replace in typescript.

form.field('fieldname').value.replace(reg expr here);

Thanks

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros