console.log("+7 (111) 111-11-111".replace(/(\s|\(|\)|-)/, "));
Related questions
'+7 (111) 111-11-111 '.replace(/\D/g, ") // "711111111111"
Find more questions by tags JavaScriptRegular expressions
Instead of selecting spec.the characters just needed to choose number) - Ida_Reich commented on April 19th 20 at 12:19