RegexRunner.Scan Method

Definition

Used by a Regex object generated by the CompileToAssembly method.

Overloads

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Used by a Regex object generated by the CompileToAssembly method.

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean, TimeSpan)

This API supports the product infrastructure and is not intended to be used directly from your code.

Used by a Regex object generated by the CompileToAssembly method.

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean)

Used by a Regex object generated by the CompileToAssembly method.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected public:
 System::Text::RegularExpressions::Match ^ Scan(System::Text::RegularExpressions::Regex ^ regex, System::String ^ text, int textbeg, int textend, int textstart, int prevlen, bool quick);
protected internal System.Text.RegularExpressions.Match? Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick);
protected internal System.Text.RegularExpressions.Match Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick);
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool -> System.Text.RegularExpressions.Match
Protected Friend Function Scan (regex As Regex, text As String, textbeg As Integer, textend As Integer, textstart As Integer, prevlen As Integer, quick As Boolean) As Match

Parameters

regex
Regex

An instance of the regular expression engine.

text
String

The text to scan for a pattern match.

textbeg
Int32

The zero-based starting position in text at which the regular expression engine scans for a match.

textend
Int32

The zero-based ending position in text at which the regular expression engine scans for a match.

textstart
Int32

The zero-based starting position to scan for this match.

prevlen
Int32

The number of characters in the previous match.

quick
Boolean

true to search for a match in quick mode; otherwise, false.

Returns

Match

A match.

Applies to

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean, TimeSpan)

Used by a Regex object generated by the CompileToAssembly method.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected public:
 System::Text::RegularExpressions::Match ^ Scan(System::Text::RegularExpressions::Regex ^ regex, System::String ^ text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
protected internal System.Text.RegularExpressions.Match? Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
protected internal System.Text.RegularExpressions.Match Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool * TimeSpan -> System.Text.RegularExpressions.Match
Protected Friend Function Scan (regex As Regex, text As String, textbeg As Integer, textend As Integer, textstart As Integer, prevlen As Integer, quick As Boolean, timeout As TimeSpan) As Match

Parameters

regex
Regex

An instance of the regular expression engine.

text
String

The text to scan for a pattern match.

textbeg
Int32

The zero-based starting position in text at which the regular expression engine scans for a match.

textend
Int32

The zero-based ending position in text at which the regular expression engine scans for a match.

textstart
Int32

The zero-based starting position to scan for this match.

prevlen
Int32

The number of characters in the previous match.

quick
Boolean

true to search for a match in quick mode; otherwise, false.

timeout
TimeSpan

The timeout interval.

Returns

Match

A match.

Applies to