语言

Capture.Value 属性

定义

从输入字符串获取捕获的子字符串。

public:
 property System::String ^ Value { System::String ^ get(); };
public string Value { get; }
member this.Value : string
Public ReadOnly Property Value As String

属性值

匹配捕获的子字符串。

注解

如果对 Match(String) 或 NextMatch() 方法的调用找不到匹配项,则 Match.Value 返回的属性的值为 Empty。 如果正则表达式引擎无法匹配捕获组,则 Group.Value 返回的属性的值是 Empty。

适用于