I forgot to mention one more space after 100
i have this string phone="+46 (0) 100 234567" and i want to get the same number without (0) and the spaces.(in javascript)
final: phone = "+46100234567"
what i have tried so far is this:
phone.replace(/[(0)]*[^0-9+]/g, '', '')=> which erases all 0'sphone.replace(/\(0\)\s*/g,'')=> which erases(0)but keeps the spaces.
any help would be welcome.