Answers for "get rid of everything except numbers in a string js"

3

javascript remove all but numbers

string.replace(/[^0-9]/g, '');
Posted by: Guest on December-10-2020

Code answers related to "get rid of everything except numbers in a string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language