internal RegExpObject(RegExpPrototype parent, String source,
bool ignoreCase, bool global, bool multiline, RegExpConstructor regExpConst)
: base(parent){
this.regExpConst = regExpConst;
this.sourceInt = source;
this.ignoreCaseInt = ignoreCase;
this.globalInt = global;
this.multilineInt = multiline;
RegexOptions flags = RegexOptions.CultureInvariant | RegexOptions.ECMAScript;
if (ignoreCase)
flags |= RegexOptions.IgnoreCase;
if (multiline)
flags |= RegexOptions.Multiline;
try{
this.regex = new Regex(source, flags);
}catch (System.ArgumentException){
throw new JScriptException(JSError.RegExpSyntax);
}
this.lastIndexInt = 0;
this.noExpando = false;
}