System.Text.RegularExpressions.Capture.Value Property

Gets the captured substring from the input string.

Syntax

public string Value { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If a call to the Regex.Match(string) or Match.NextMatch method fails to find a match, the value of the returned Match.Value property is string.Empty. If the regular expression engine is unable to match a capturing group. the value of the returned Group.Value property is string.Empty. See the second example for an illustration.

Requirements

Namespace: System.Text.RegularExpressions
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0