System::Text::RegularExpressions::Regex::Match method

Regex::Match(const String&) method

Matcht regex met een string.

MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input)
ParameterTypeBeschrijving
invoerconst String&Doeltekenreeks.

ReturnValue

Match value containing match status and submatches.

Zie ook

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

Matcht regex met een string.

MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, int startat, int length=0)
ParameterTypeBeschrijving
invoerconst String&Doeltekenreeks.
startatintBeginindex.
lengteintAantal tekens om door te zoeken (0 om de hele tekenreeks te doorzoeken).

ReturnValue

Match value containing match status and submatches.

Zie ook

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

Matcht string en patroon.

static MatchPtr System::Text::RegularExpressions::Regex::Match(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

Eerste overeenkomst gevonden.

Zie ook