public static object exec(object thisob, object input) { RegExpObject obj2 = thisob as RegExpObject; if (obj2 == null) { throw new JScriptException(JSError.RegExpExpected); } if ((input is Missing) && !obj2.regExpConst.noExpando) { input = obj2.regExpConst.input; } return(obj2.exec(Microsoft.JScript.Convert.ToString(input))); }
public static Object exec(Object thisob, Object input) { RegExpObject regExpObject = thisob as RegExpObject; if (regExpObject == null) { throw new JScriptException(JSError.RegExpExpected); } if (input is Missing && !regExpObject.regExpConst.noExpando) { input = regExpObject.regExpConst.input; } return(regExpObject.exec(Convert.ToString(input))); }