Capture.Value Property

Definition

Gets the captured substring from the input string.

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

Property Value

The substring that is captured by the match.

Remarks

If a call to the Match(String) or NextMatch() method fails to find a match, the value of the returned Match.Value property is Empty. If the regular expression engine is unable to match a capturing group, the value of the returned Group.Value property is Empty.

Applies to