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 |
---|---|
Capture |
A Capture |
#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.