DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get number from string javascript
str = "hello123!" str.match(/(d+)/)[1] //Best way to find first matching number in string ;)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#number
#string
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+7 =
Submit