I have an "Invalid character error" while using JS script to extract emails from the text that I cannot handle for the last 2 days.
I am getting a text from web application by using Object cloning and passing it to a variable which I will later pass to JS script.
And of course, my JS script which I checked and it works:
var args = WScript.Arguments;
var pattern = \w+@\w+.\w;
var result = /pattern/.exec(args);
WScript.StdOut.WriteLine(result);