Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get numbers only

    var str = "Rs. 6,67,000";
    var res = str.replace(/D/g, "");
    alert(res); // 667000
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #numbers
ADD COMMENT
Topic
Name
6+7 =