Matches()

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)

Arguments

ParameterTypeDescription
inputconst String&Input string.
startatintIndex to start matching at.

Return Value

Collection of all matches found.

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)

Arguments

ParameterTypeDescription
inputconst String&Input string.
patternconst String&Regexp pattern.
optionsRegexOptionsMatching options.
matchTimeoutTimeSpanTimeout.
startatintMatch beginning position.
lengthintNumber of characters to look through (0 diables limit).

Return Value

All matches found by matching repeatedly.

See Also