Name

Group

Synopsis

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 : Inherits Capture
' Public Instance Properties
   Public ReadOnly Property Captures As CaptureCollection  
   Public ReadOnly Property Success As Boolean  
' Public Shared Methods
   Public Shared Function Synchronized(
        ByVal inner As Group) As Group  
End Class

Hierarchy

System.ObjectCapture Group

Subclasses

Match

Returned By

GroupCollection.this

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.