81
rated 0 times
[
86]
[
5]
/ answers: 1 / hits: 47204
/ 10 Years ago, wed, april 2, 2014, 12:00:00
I'm not sure how to escape '+' in regex. Plus can come multiple times in i
so we need to replace all +
in the string. Here's what I have:
i.replace(new RegExp(+,g),' ').replace(new RegExp(selectbasic=,g),'').split('&');
But this gives me this error:
Uncaught SyntaxError: Invalid regular expression: /+/: Nothing to repeat
More From » regex