Contact: aviboots(AT)netvision.net.il
43,181 questions
56,073 answers
573 users
function extractDigits(str) { return str.replace(/[^0-9]/g, ""); } const str = '824 node3js 9001 c c++ 17'; const digits = extractDigits(str); console.log(digits); /* run: 8243900117 */