Replace with Regex

JavaScript

const regex = /[\s-\(\)]+/g;
numer = "(48) 123-456-789";

let m = numer.replace(regex, "");

document.write(m);