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

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

Haalt alle matches van regex op in een gegeven string door herhaaldelijk te matchen.

MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
ParameterTypeBeschrijving
invoerconst String&Invoertekenreeks.
startatintIndex om te beginnen met vergelijken.

ReturnValue

Collectie van alle gevonden overeenkomsten.

Zie ook

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

Haalt alle matches tussen string en patroon op.

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)
ParameterTypeBeschrijving
invoerconst String&Invoertekenreeks.
patroonconst String&Regexp-patroon.
optiesRegexOptionsOpties voor vergelijken.
matchTimeoutTimeSpanTime-out.
startatintMatch beginnende positie.
lengteintAantal tekens om door te zoeken (0 schakelt limiet uit).

ReturnValue

Alle gevonden overeenkomsten door herhaaldelijk te vergelijken.

Zie ook