"1.23-45/6$7.8,9".replace(/[^0-9]/g,'') // Response: "123456789"
const extractNumbers = (string) => { const regex = /[0-9/ /]/g; const nums = string.match(regex); const newText = nums.join(""); return newText };