Bewerken

Delen via


RegexRunner.Scan Method

Definition

Used by a Regex object generated by the CompileToAssembly method.

Overloads

Scan(ReadOnlySpan<Char>)

Used by a Regex object to scan the input text looking for the next match.

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.

Obsolete.

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.

Obsolete.

Used by a Regex object generated by the CompileToAssembly method.

Scan(ReadOnlySpan<Char>)

Source:
RegexRunner.cs
Source:
RegexRunner.cs
Source:
RegexRunner.cs

Used by a Regex object to scan the input text looking for the next match.

protected public:
 virtual void Scan(ReadOnlySpan<char> text);
protected internal virtual void Scan (ReadOnlySpan<char> text);
abstract member Scan : ReadOnlySpan<char> -> unit
override this.Scan : ReadOnlySpan<char> -> unit
Protected Friend Overridable Sub Scan (text As ReadOnlySpan(Of Char))

Parameters

text
ReadOnlySpan<Char>

The text to scan for a pattern match.

Exceptions

ReadOnlySpan<T>-based Regex methods are not supported from Regex-derived types generated by CompileToAssembly.

Remarks

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

Applies to

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

Source:
RegexRunner.cs
Source:
RegexRunner.cs
Source:
RegexRunner.cs

Caution

This API supports obsolete mechanisms for Regex extensibility. It is not supported.

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);
[System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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

A match.

Attributes

Applies to

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

Source:
RegexRunner.cs
Source:
RegexRunner.cs
Source:
RegexRunner.cs

Caution

This API supports obsolete mechanisms for Regex extensibility. It is not supported.

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);
[System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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

A match.

Attributes

Applies to