RegExpConstructor.Construct(String, Boolean, Boolean, Boolean) 方法

定義

為指定的正則表達式模式與旗標建立一個新 RegExpObject 物件。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 System::Object ^ Construct(System::String ^ pattern, bool ignoreCase, bool global, bool multiline);
public object Construct(string pattern, bool ignoreCase, bool global, bool multiline);
override this.Construct : string * bool * bool * bool -> obj
member this.Construct : string * bool * bool * bool -> obj
Public Function Construct (pattern As String, ignoreCase As Boolean, global As Boolean, multiline As Boolean) As Object

參數

pattern
String

要比對的正則表達式模式。

ignoreCase
Boolean

true使用大小寫不敏感的匹配;否則,。 false

global
Boolean

true使用全域匹配;否則,。 false

multiline
Boolean

true使用多線匹配;否則,。 false

傳回

一個新 RegExpObject 物件。

適用於

另請參閱