I have a value in Javascript as
var input = "Rs. 6,67,000"
How can I get only the numerical values ?
Result: 667000
Current Approach (not working)
var input = "Rs. 6,67,000";
var res = str.replace("Rs. ", "").replace(",","");
alert(res);
Result: 667,000
replaceAll()
injavascript
.replaceAll()
injavascript
. medium.com/better-programming/….