System::Text::RegularExpressions::Regex::Matches メソッド

Regex::Matches(const String&, int) method

与えられた文字列内で正規表現のすべてのマッチを繰り返しマッチさせて取得します。

MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
パラメーター説明
入力const String&入力文字列。
startatintマッチングを開始するインデックス。

ReturnValue

見つかったすべての一致のコレクション。

参照

Regex::Matches(const String&, const String&, RegexOptions, TimeSpan, int, int) method

文字列とパターン間のすべてのマッチを取得します。

static MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout, int startat=0, int length=0)
パラメーター説明
入力const String&入力文字列。
パターンconst String&正規表現パターン。
optionsRegexOptionsマッチングオプション。
matchTimeoutTimeSpanタイムアウト。
startatintMatch の開始位置。
lengthint検索する文字数 (0 は制限なし)。

ReturnValue

繰り返しマッチングして見つかったすべての一致。

参照