I have a value in Javascript as
var input = \"Rs. 6,67,000\"
How can I get only the numerical values ?
Result: 6
6
You can use
str.replace('Rs. ', '').replace(/,/g, '');
or
str.replace(/Rs. |,/g, '');
/,/g
g
global
/Rs. |,/g
Rs.
,