Group

Group CF 1.0, serializable

System.Text.RegularExpressions (system.dll) class

This class contains a group of results from a capturing group in a regular expression. A capturing group can return zero or more results depending on the use of quantifiers or nested groupings of a subexpression. Captures returns a CaptureCollection composed of individual Capture objects. Captures can use an indexer to return single results from the CaptureCollection .

You can treat a Group as an instance of its parent class ( Capture ) to get quick access to the last captured substring (an instance of Group is equal to the last item in its Captures property).

 public class  Group  : Capture {  // Public Instance Properties  public CaptureCollection  Captures  {get; }    public bool  Success  {get; }  // Public Static Methods  public static Group  Synchronized  (Group   inner   ); } 

Hierarchy

System.Object Capture Group

Subclasses

Match

Returned By

GroupCollection.this



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net