Regex.Matches メソッド (String, String, RegexOptions)
アセンブリ: System (system.dll 内)

Public Shared Function Matches ( _ input As String, _ pattern As String, _ options As RegexOptions _ ) As MatchCollection
Dim input As String Dim pattern As String Dim options As RegexOptions Dim returnValue As MatchCollection returnValue = Regex.Matches(input, pattern, options)
public static function Matches ( input : String, pattern : String, options : RegexOptions ) : MatchCollection
戻り値
検索によって見つかった Match オブジェクトの MatchCollection。

Matches メソッドは Match メソッドに似ていますが、match= Match (...)、続けて Match.NextMatch () のように呼び出しを繰り返した結果、連続して一致した複数の対象リストを返す点が異なります。コレクションは、連続して一致した対象だけを格納し、一致しないものが見つかった時点で末尾をなします。
静的 Matches メソッドは、正規表現パターンを指定して Regex オブジェクトを構築し、インスタンス メソッド Matches を呼び出す操作と同じです。この静的メソッドは、Regex オブジェクトを明示的に作成しなくても、正規表現を単独で 1 回だけ使用できるようにする目的で用意されています。

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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Regex.Matches メソッド (String, String)
アセンブリ: System (system.dll 内)

Dim input As String Dim pattern As String Dim returnValue As MatchCollection returnValue = Regex.Matches(input, pattern)
戻り値
検索によって見つかった Match オブジェクトの MatchCollection。

Matches メソッドは Match メソッドに似ていますが、match= Match (...)、続けて Match.NextMatch () のように呼び出しを繰り返した結果、連続して一致した複数の対象リストを返す点が異なります。コレクションは、連続して一致した対象だけを格納し、一致しないものが見つかった時点で末尾をなします。
静的 Matches メソッドは、正規表現パターンを指定して Regex オブジェクトを構築し、インスタンス メソッド Matches を呼び出す操作と同じです。この静的メソッドは、Regex オブジェクトを明示的に作成しなくても、正規表現を単独で 1 回だけ使用できるようにする目的で用意されています。

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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Regex.Matches メソッド (String)
アセンブリ: System (system.dll 内)

Dim instance As Regex Dim input As String Dim returnValue As MatchCollection returnValue = instance.Matches(input)
戻り値
検索によって見つかった Match オブジェクトの MatchCollection。

Matches メソッドは Match メソッドに似ていますが、match= Match (...)、続けて Match.NextMatch () のように呼び出しを繰り返した結果、連続して一致した複数の対象リストを返す点が異なります。コレクションは、連続して一致した対象だけを格納し、一致しないものが見つかった時点で末尾をなします。


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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Regex.Matches メソッド

名前 | 説明 |
---|---|
Regex.Matches (String) | 指定した入力文字列内で、正規表現と一致する対象をすべて検索します。 .NET Compact Framework によってサポートされています。 |
Regex.Matches (String, Int32) | 入力文字列内の指定した位置から検索を開始した場合に、その入力文字列内で正規表現と一致する対象をすべて検索します。 .NET Compact Framework によってサポートされています。 |
Regex.Matches (String, String) | 指定した入力文字列内で、pattern パラメータで指定された正規表現に一致する対象をすべて検索します。 .NET Compact Framework によってサポートされています。 |
Regex.Matches (String, String, RegexOptions) | options パラメータに一致オプションを指定し、指定した入力文字列内で、pattern パラメータに指定した正規表現に一致する対象をすべて検索します。 .NET Compact Framework によってサポートされています。 |

Regex.Matches メソッド (String, Int32)
アセンブリ: System (system.dll 内)

Dim instance As Regex Dim input As String Dim startat As Integer Dim returnValue As MatchCollection returnValue = instance.Matches(input, startat)
戻り値
検索によって見つかった Match オブジェクトの MatchCollection。

Matches メソッドは Match メソッドに似ていますが、match= Match (...)、続けて Match.NextMatch () のように呼び出しを繰り返した結果、連続して一致した複数の対象リストを返す点が異なります。コレクションは、連続して一致した対象だけを格納し、一致しないものが見つかった時点で末尾をなします。

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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Regex.Matchesのページへのリンク