I’m struggling with a regex, I have a string that contains a lot of \n , which I want to get rid of. So I use the replace method with storeEval as follows :
var r=storedVars['just'];r.replace(/\n/g,' ');r;
(just is the string previously stored )
So when I run the program I expect to get a string without any \n, but all I get is this error :
Error in runEval code: unterminated regular expression literal
When using any other regex, it works fine , but for this specific case, it does not.
Thanks for any help or advice,