Property Captures
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Captures
Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the RightToLeft option).
public PdfTextCaptureCollection Captures { get; }
Property Value
- PdfTextCaptureCollection
The collection of captures matched by the group.
Remarks
The collection may have zero items when Success is false.
If a quantifier is not applied to a capturing group, the returned collection contains a
single PdfTextCapture object that provides information about the same
substring as the PdfTextGroup object.
The real utility of the Captures property occurs when a quantifier is applied to
a capturing group so that the group captures multiple substrings in a single regular
expression. In this case, the GetSpans() method returns text spans for
the last captured substring, whereas the Captures property contains information
about all the substrings captured by the group.