Subj : string declaration without evaluation To : netscape.public.mozilla.jseng From : Moe tokrot Date : Wed Jun 02 2004 03:45 pm Hi, Does anybody knows if it's possible to declare a string and not evaluate it when calling JS_evaluateScript ?? ex: const char my_string[]="var src=\"text \""; JS_EvaluateScript(cx,obj,my_string,strlen(my_string), filename, lineto, &rval); My goal is to analyse src (not evaluated...the string exactly as above ) with a regexp: const char my_string2[]="src.replace(my_regexp)"; JS_EvaluateScript(cx,obj,my_string2,strlen(my_string2), filename, lineto, &rval); is it possible in this way or another one ?? thanks moe .