This is my RegEx:
console.log(test.replace(/0098/g, ")").replace(/[()]/g, ''));
How can I replace only () if exists?
My code replace now all bridgets.
I want to replace only where is exists ().
Like my example:
var test = "(test1234) - test948 () usi27361() 928372da";
New string: (test1234) - test948 usi27361 928372da
\(\)[xyz]- means match any one of the characters in the[]- it's the equivalent ofx or y or z.