From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property Groups: TGroupCollection read GetGroups;


__property TGroupCollection Groups = {read=GetGroups};


Type Visibility Source Unit Parent
property public
System.RegularExpressions TMatch


Contains a collection of groups from the most recent match with a regular expression.

A regular expression pattern can include subpatterns, which are defined by enclosing a portion of the regular expression pattern in parentheses. Every such subpattern captures a subexpression or group. For example, the regular expression pattern (\d{3})-(\d{2})-(\d{4}), which matches social security numbers. The first group consists of the first three digits and is captured by the first portion of the regular expression, (\d{3}). The second group of two digits is captured by the second portion of the regular expression, (\d{2}). And the third by (\d{4}). After a Match of a well formatted social security number with this regular expression, these three groups can then be retrieved from the TGroupCollection object that is returned by the Groups property.

See Also

Code Examples