I have a value in Javascript as
var input = \"Rs. 6,67,000\"
How can I get only the numerical values ?
Result: 6
6
var input = "Rs. 6,67,000"; input = input.replace("Rs. ", ""); //loop through string and replace all commas while (input.indexOf(",") !== -1) { input = input.replace(",",""); }