RegExpPrototype::compile Method (Object^, Object^, Object^)

 

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

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

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::HasThisObject, 
	JSBuiltin::RegExp_compile)]
static RegExpObject^ compile(
	Object^ thisob,
	Object^ source,
	Object^ flags
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

source
Type: System::Object^

The regular expression pattern to search for.

flags
Type: System::Object^

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

Return Value

Type: Microsoft.JScript::RegExpObject^

A new RegExpObject object.

.NET Framework
Available since 1.1
Return to top
Show: