Javascript Regex Replace string, special character need help

designcise said

the brackets need to be escaped too doing something like this: (800) otherwise it considers it a “group” in regexp.

OOOoooHH You Right now you understand what i going do doing. the problem is

i am replace

replace(varofstring, ’ varofstring');

in varofstring some time number is 800.132.1245 or (800)123.1234 or different different north American number format. but when i replacing bracket numbers my code not works :frowning: