Extract only numbers from String

by Faisal Khan Janjua

JavaScript

let word_With_Nmerbers = 'a.bc1$%2@3c def4,567/h#ij\|89'
let word_Without_Numbers = word_With_Nmerbers.replace(/\D/g, '');


console.log(word_Without_Numbers);
$('body').append(word_Without_Numbers + "<br>");