Name

Capture

Synopsis

This class represents a single result from a capturing group, which is a segment of a regular expression that is delineated, usually by parentheses. The parentheses signal .NET’s regular expression engine to save that segment’s result for later use. Capture objects compose the collection returned by Group.Captures. The Value property gets the captured substring. The Index property contains the starting position of the capture in the input string, while Length contains the length of the captured string.

Public Class Capture
                  ' Public Instance Properties
   Public ReadOnly Property Index As Integer  
   Public ReadOnly Property Length As Integer  
   Public ReadOnly Property Value As String  
' Public Instance Methods
   Overrides Public Function ToString() As String  
End Class

Subclasses

Group

Returned By

CaptureCollection.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.