Export (0) Print
Expand All

Regex.Match Method (String, Int32, Int32)

Searches the input string for an occurrence of a regular expression with a specified input string starting position and input string length.

Namespace: System.Text.RegularExpressions
Assembly: System (in system.dll)

public Match Match (
	string input,
	int beginning,
	int length
)
public Match Match (
	String input, 
	int beginning, 
	int length
)
public function Match (
	input : String, 
	beginning : int, 
	length : int
) : Match

Parameters

input

The string to be tested for a match.

beginning

The character position in the input string at which to begin the search.

length

The number of characters in the substring to include in the search.

Return Value

A regular expression Match object.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft