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

適用対象