Group

GroupCF 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



    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System