I need to be able to take a string like this one '234; sdfghj.;34567; 45678';df950' and remove all spaces, commas, dots, semicolons, line changes/new lines to get an array like this ['234','sdfghj','34567','45678','df950']
But after that I also need to remove all none numeric characters and get this['234', '34567','45678','950']
>Solution :
const str = "234; sdfghj.;34567; 45678';df950;dfg234j98"
const alphanum = /(\w+)/g;
const result = str.match(alphanum).map(v => v.replace(/[a-zA-Z]/g, '')).filter(v => v)
console.log(result)