I want this:
but parentheses have a proper use in regular expression.. here's my line:
html = html.replace(new RegExp('somestring(1)',"g"),'somestring(2)')
It just doesn't find the pattern. I tried using the backslash character to transform this special character in a literal character, but still nothing:
html = html.replace(new RegExp('somestring\(1\)',"g"),'somestring(2)')
It's drving me nuts!
Thanks for your time!