How can I replace a string between two given characters in javascript?
var myString = '(text) other text';
I thought of something like this, using regex but I don't think it's the right syntax.
myString = myString.replace('(.*)', 'replace');
My expected results is myString = 'replace other text';