System.RegularExpressionsCore.TPerlRegEx.GroupCount
Delphi
property GroupCount: Integer read GetGroupCount;
C++
__property int GroupCount = {read=GetGroupCount, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.RegularExpressionsCore.pas System.RegularExpressionsCore.hpp |
System.RegularExpressionsCore | TPerlRegEx |
Description
Number of matched capturing groups.
Number of matched groups stored in the Groups array.
Number of matched groups stored in the Groups array. This number is the number of the highest-numbered capturing group in your regular expression that actually participated in the last match. It may be less than the number of capturing groups in your regular expression.
E.g. when the regex "(a)|(b)" matches "a", GroupCount will be 1. When the same regex matches "b", GroupCount will be 2.
Run-time and read-only.
See Also
Code Examples