DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+7 =
Submit