次の方法で共有


Regex.EnumerateMatches メソッド

定義

オーバーロード

EnumerateMatches(ReadOnlySpan<Char>, String, RegexOptions, TimeSpan)

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

EnumerateMatches(ReadOnlySpan<Char>, String, RegexOptions)

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

EnumerateMatches(ReadOnlySpan<Char>)

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

EnumerateMatches(ReadOnlySpan<Char>, Int32)

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

EnumerateMatches(ReadOnlySpan<Char>, String)

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

EnumerateMatches(ReadOnlySpan<Char>, String, RegexOptions, TimeSpan)

ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

public:
 static System::Text::RegularExpressions::Regex::ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, System::String ^ pattern, System::Text::RegularExpressions::RegexOptions options, TimeSpan matchTimeout);
public static System.Text.RegularExpressions.Regex.ValueMatchEnumerator EnumerateMatches (ReadOnlySpan<char> input, string pattern, System.Text.RegularExpressions.RegexOptions options, TimeSpan matchTimeout);
static member EnumerateMatches : ReadOnlySpan<char> * string * System.Text.RegularExpressions.RegexOptions * TimeSpan -> System.Text.RegularExpressions.Regex.ValueMatchEnumerator
Public Shared Function EnumerateMatches (input As ReadOnlySpan(Of Char), pattern As String, options As RegexOptions, matchTimeout As TimeSpan) As Regex.ValueMatchEnumerator

パラメーター

input
ReadOnlySpan<Char>

一致を検索するスパン。

pattern
String

照合する正規表現パターン。

options
RegexOptions

一致するオプションを指定する列挙値のビットごとの組み合わせ。

matchTimeout
TimeSpan

タイムアウト間隔、またはメソッドがタイムアウトしないことを示す InfiniteMatchTimeout

戻り値

一致を反復処理する Regex.ValueMatchEnumerator

例外

patternnullです。

options は RegexOptions 値の有効なビットごとの組み合わせではありません。または、matchTimeout が負、ゼロ、または約 24 日を超えています。

正規表現解析エラーが発生しました。

注釈

列挙子で MoveNext() が呼び出されるまで、各一致は実際には発生せず、MoveNext() 呼び出しごとに 1 つの一致が実行されます。 一致の評価は遅く行われるため、MoveNext() の呼び出しの間に渡された入力に対する変更は一致結果に影響します。 このメソッドによって返される列挙子と、入力で見つかった各一致をラップする列挙子によって返される構造体は、このメソッドを償却割り当て自由にする ref 構造体です。

適用対象

EnumerateMatches(ReadOnlySpan<Char>, String, RegexOptions)

ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

public:
 static System::Text::RegularExpressions::Regex::ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, System::String ^ pattern, System::Text::RegularExpressions::RegexOptions options);
public static System.Text.RegularExpressions.Regex.ValueMatchEnumerator EnumerateMatches (ReadOnlySpan<char> input, string pattern, System.Text.RegularExpressions.RegexOptions options);
static member EnumerateMatches : ReadOnlySpan<char> * string * System.Text.RegularExpressions.RegexOptions -> System.Text.RegularExpressions.Regex.ValueMatchEnumerator
Public Shared Function EnumerateMatches (input As ReadOnlySpan(Of Char), pattern As String, options As RegexOptions) As Regex.ValueMatchEnumerator

パラメーター

input
ReadOnlySpan<Char>

一致を検索するスパン。

pattern
String

照合する正規表現パターン。

options
RegexOptions

一致するオプションを指定する列挙値のビットごとの組み合わせ。

戻り値

一致を反復処理する Regex.ValueMatchEnumerator

例外

patternnullです。

options は、RegexOptions 値の有効なビットごとの組み合わせではありません。

正規表現解析エラーが発生しました。

注釈

列挙子で MoveNext() が呼び出されるまで、各一致は実際には発生せず、MoveNext() 呼び出しごとに 1 つの一致が実行されます。 一致の評価は遅く行われるため、MoveNext() の呼び出しの間に渡された入力に対する変更は一致結果に影響します。 このメソッドによって返される列挙子と、入力で見つかった各一致をラップする列挙子によって返される構造体は、このメソッドを償却割り当て自由にする ref 構造体です。

適用対象

EnumerateMatches(ReadOnlySpan<Char>)

ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

public:
 System::Text::RegularExpressions::Regex::ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input);
public System.Text.RegularExpressions.Regex.ValueMatchEnumerator EnumerateMatches (ReadOnlySpan<char> input);
member this.EnumerateMatches : ReadOnlySpan<char> -> System.Text.RegularExpressions.Regex.ValueMatchEnumerator
Public Function EnumerateMatches (input As ReadOnlySpan(Of Char)) As Regex.ValueMatchEnumerator

パラメーター

input
ReadOnlySpan<Char>

一致を検索するスパン。

戻り値

一致を反復処理する Regex.ValueMatchEnumerator

注釈

列挙子で MoveNext() が呼び出されるまで、各一致は実際には発生せず、MoveNext() 呼び出しごとに 1 つの一致が実行されます。 一致の評価は遅く行われるため、MoveNext() の呼び出しの間に渡された入力に対する変更は一致結果に影響します。 このメソッドによって返される列挙子と、入力で見つかった各一致をラップする列挙子によって返される構造体は ref 構造体であり、このメソッドを償却割り当て自由にします。

適用対象

EnumerateMatches(ReadOnlySpan<Char>, Int32)

ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

public:
 System::Text::RegularExpressions::Regex::ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, int startat);
public System.Text.RegularExpressions.Regex.ValueMatchEnumerator EnumerateMatches (ReadOnlySpan<char> input, int startat);
member this.EnumerateMatches : ReadOnlySpan<char> * int -> System.Text.RegularExpressions.Regex.ValueMatchEnumerator
Public Function EnumerateMatches (input As ReadOnlySpan(Of Char), startat As Integer) As Regex.ValueMatchEnumerator

パラメーター

input
ReadOnlySpan<Char>

一致を検索するスパン。

startat
Int32

検索を開始する位置を 0 から始める文字位置。

戻り値

一致を反復処理する Regex.ValueMatchEnumerator

注釈

列挙子で MoveNext() が呼び出されるまで、各一致は実際には発生せず、MoveNext() 呼び出しごとに 1 つの一致が実行されます。 一致の評価は遅く行われるため、MoveNext() の呼び出しの間に渡された入力に対する変更は一致結果に影響します。 返される列挙子と、入力で見つかった各一致をラップする列挙子によって返される構造体は ref 構造体であり、このメソッドを償却割り当て自由にします。

適用対象

EnumerateMatches(ReadOnlySpan<Char>, String)

ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs
ソース:
Regex.EnumerateMatches.cs

正規表現のすべての出現箇所を入力スパンで検索し、一致を反復処理する Regex.ValueMatchEnumerator を返します。

public:
 static System::Text::RegularExpressions::Regex::ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, System::String ^ pattern);
public static System.Text.RegularExpressions.Regex.ValueMatchEnumerator EnumerateMatches (ReadOnlySpan<char> input, string pattern);
static member EnumerateMatches : ReadOnlySpan<char> * string -> System.Text.RegularExpressions.Regex.ValueMatchEnumerator
Public Shared Function EnumerateMatches (input As ReadOnlySpan(Of Char), pattern As String) As Regex.ValueMatchEnumerator

パラメーター

input
ReadOnlySpan<Char>

一致を検索するスパン。

pattern
String

照合する正規表現パターン。

戻り値

一致を反復処理する Regex.ValueMatchEnumerator

例外

patternnullです。

正規表現解析エラーが発生しました。

注釈

列挙子で MoveNext() が呼び出されるまで、各一致は実際には発生せず、MoveNext() 呼び出しごとに 1 つの一致が実行されます。 一致の評価は遅く行われるため、MoveNext() の呼び出しの間に渡された入力に対する変更は一致結果に影響します。 このメソッドによって返される列挙子と、入力で見つかった各一致をラップする列挙子によって返される構造体は、このメソッドを償却割り当て自由にする ref 構造体です。

適用対象