const extractNumbers = (string) => { const regex = /[0-9/ /]/g; const nums = string.match(regex); const newText = nums.join(""); return newText };