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 物件。

適用於

另請參閱