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.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
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.