RegExpPrototype.compile(Object, Object, Object) Methode

Definition

Erstellt und kompiliert ein neues RegExpObject Objekt für das angegebene Muster und Flags für reguläre Ausdrücke.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Das Objekt, auf das diese Methode ausgeführt wird.

source
Object

Das Muster für reguläre Ausdrücke, nach dem gesucht werden soll.

flags
Object

Flags für die Modi "Groß-/Kleinschreibung ignorieren", "global" und "multiline".

Gibt zurück

Ein neues RegExpObject -Objekt.

Attribute

Gilt für:

Weitere Informationen