JCL Help:TJclRegEx.CaptureCount
JCL Help: TJclRegEx.CaptureCount Property
Search in JCL Help
Search in all projects
Summary
Number of strings in the result for a comparison performed using the Match method.
Pascal
public property CaptureCount: Integer;
Description
CaptureCount is a read-only Integer property that represents the number of strings in the result for a comparison performed using the Match method.
The value in CaptureCount is updated when Match returns True. Its' minimum value should be 1 (for a literal match involving no metacharacters or metacharacter classes) up to the number of strings required to represent the metacharacters and metacharacter classes in the regular expression.
CaptureCount can also be used to determine the range of ordinal positions allowed when accessing indexed values in the Captures and CaptureRanges properties. The range of values is guaranteed to be in the range 0 up to CaptureCount-1.
Use Captures to access a result string by its' ordinal position.
Use CaptureRanges to access the starting and ending offsets into the text subject by its' ordinal position.
See Also
Match Compile Captures CaptureRanges
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page