System::Text::RegularExpressions::Regex::Matches method

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

Gets all matches of regex in given string by matching repeatedly.

MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
ParameterTypeDescription
inputconst String&Input string.
startatintIndex to start matching at.

ReturnValue

Collection of all matches found.

See Also

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

Gets all matches between string and pattern.

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)
ParameterTypeDescription
inputconst String&Input string.
patternconst String&Regexp pattern.
optionsRegexOptionsMatching options.
matchTimeoutTimeSpanTimeout.
startatintMatch beginning position.
lengthintNumber of characters to look through (0 diables limit).

ReturnValue

All matches found by matching repeatedly.

See Also