語言

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。

適用於