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

定义

为指定正则表达式模式和标志创建一个新 RegExpObject 对象。Creates a new RegExpObject object for the specified regular expression pattern and flags.

此 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

要匹配的正则表达式模式。The regular expression pattern to match.

ignoreCase
Boolean

如果使用不区分大小写的匹配,则为 true;否则为 falsetrue to use case-insensitive matching; otherwise, false.

global
Boolean

如果使用全局匹配,则为 true;否则为 falsetrue to use a global match; otherwise, false.

multiline
Boolean

如果使用多行匹配,则为 true;否则为 falsetrue to use a multiline match; otherwise, false.

返回

Object

一个新 RegExpObject 对象。A new RegExpObject object.

适用于

另请参阅