Share via


RegExpPrototype.compile(Object, Object, Object) Metode

Definisi

Membuat dan mengkompilasi objek baru RegExpObject untuk pola dan bendera ekspresi reguler yang ditentukan.

API ini mendukung infrastruktur produk dan tidak dimaksudkan untuk digunakan langsung dari kode Anda.

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

Parameter

thisob
Object

Objek yang ditindakkan oleh metode ini.

source
Object

Pola ekspresi reguler untuk dicari.

flags
Object

Bendera untuk mode abaikan, global, dan multibaris.

Mengembalikan

Objek baru RegExpObject .

Atribut

Berlaku untuk

Lihat juga