Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

CaptureCollection Captures { get; }

#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