.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

Group.Captures Property

Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order. The collection may have zero or more items.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

CaptureCollection Captures { get; }
ReadOnly Property Captures As CaptureCollection

Property Value

Type Description
CaptureCollection

A CaptureCollection object representing a collection of substrings matched by the group.

Remarks

If a quantifier is not applied to a capturing group, the collection returned by the Group.Captures property contains a single Capture object that provides information about the same substring as the Group object.

The Capture is more useful in a situation where a quantifier is applied to a capturing group, so that the group captures multiple substrings in a single regular expression. The Group object contains information about the last captured substring, whereas the Captures property contains information about all the substrings captured by the group.

See Also