In This Article

RegexCapture Class

Stores information about a regular expression capture from a match operation.

public class RegexCapture
Inheritance:
object object

Constructors

RegexCapture(string, int, int, string)

Stores information about a regular expression capture from a match operation.

public RegexCapture(string name, int startOffset, int endOffset, string text = "")
Parameter Type Description
name string

The capture's name, which is often a number.

startOffset int

The start offset of the capture.

endOffset int

The end offset of the capture.

text string

The text that was captured.

Properties

EndOffset

The end offset of the capture.

public int EndOffset { get; }

Property Value

int

Name

The capture's name, which is often a number.

public string Name { get; }

Property Value

string

StartOffset

The start offset of the capture.

public int StartOffset { get; }

Property Value

int

Text

The text that was captured.

public string Text { get; }

Property Value

string

Inherited Members

Extension Methods