I have a value in Javascript as
var input = \"Rs. 6,67,000\"
How can I get only the numerical values ?
Result: 6
6
If by chance you need the comma you can use the code bellow:
var input = "Rs. 6,67,000" const numbers = str.match(/(\d|,)+/g).pop(); // 6,67,000