2021年4月22日星期四

jQuery get price from string

I have a string like this

Payment terms:  50.00% - RM966.72 - (Before project start)  30.00% - RM580.03 - (Upon second review, 70% completion, before next 30% development start)  20.00% - RM386.69 - (Before deploy to PROD)  

With jQuery or JavaScript, I need to retrieve all payment amount (xxx.xx) with RM at the beginning, regardless of how the string changes. How do I do that with or without regex?

https://stackoverflow.com/questions/67223378/jquery-get-price-from-string April 23, 2021 at 10:57AM

没有评论:

发表评论