RegExpPrototype.compile(Object, Object, Object) Method

Definition

Creates and compiles a new RegExpObject object for the specified regular expression pattern and flags.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static Microsoft::JScript::RegExpObject ^ compile(System::Object ^ thisob, System::Object ^ source, System::Object ^ flags);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.RegExp_compile)]
public static Microsoft.JScript.RegExpObject compile (object thisob, object source, object flags);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.RegExp_compile)>]
static member compile : obj * obj * obj -> Microsoft.JScript.RegExpObject
Public Shared Function compile (thisob As Object, source As Object, flags As Object) As RegExpObject

Parameters

thisob
Object

The object that this method is acting upon.

source
Object

The regular expression pattern to search for.

flags
Object

Flags for the ignore case, global, and multiline modes.

Returns

A new RegExpObject object.

Attributes

Applies to

See also