Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
js extract only numbers from string
Whitney
Programming language:
Javascript
2021-06-18 08:44:06
0
Q:
js extract only numbers from string
Sujith
Code:
Javascript
2021-03-07 23:33:07
"1.23-45/6$7.8,9".replace(/[^0-9]/g,'') // Response: "123456789"
2
Tags
number
string
Related
grep first 2 character from string in javascript
js get numbers from string
Count Total Amount Of Specific Word In a String JavaScript
remove commas from string javascript
js remove all non numeric from string
javascript find a digit in str
javascript remove non numeric
javascript remove non numeric chars from string keep dot
check if string is datestring javascript
javascript how to get rid of e with number input
remove first 3 characters from string javascript
javascript delete first character from string
get only numbers regex javascript
javascript get certain letter of string
regex for strings with specific letters javascript
find substring in string javascript
javascript extract number from string
javascript remove non numeric characters
js regex only numbers and dot
New to Communities?
Join the community