Here is my regex:
var newRegexp= new RegExp('\[\/\[\]\^\$\|\*\+\(\)\\~@#%&\-_+=\{}£<>]{1,}', 'g');
I get the Uncaught SyntaxError: Invalid regular expression: Nothing to repeat
error with it, and I can't figure out why. I used it on RegExr and it works fine. Any help is appreciated.