System::Text::RegularExpressions::Regex::Split method

Regex::Split(const String&) method

Splitst een string op regex‑overeenkomsten.

ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input)
ParameterTypeBeschrijving
inputconst String&String om te splitsen.

ReturnValue

Array of substrings between matches.

Zie ook

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

Splitst een string op regex‑overeenkomsten.

ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, int count)
ParameterTypeBeschrijving
inputconst String&String om te splitsen.
countintAantal subreeksen limiet.

ReturnValue

Array of substrings between matches.

Zie ook

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

Splitst een invoertekenreeks een opgegeven maximum aantal keren in een array van subreeksen, op de posities die zijn gedefinieerd door een reguliere expressie opgegeven in de Regex constructor. Het zoeken naar het patroon van de reguliere expressie begint op een opgegeven tekenpositie in de invoertekenreeks.

ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, int count, int startat)
ParameterTypeBeschrijving
invoerconst String&De te splitsen tekenreeks.
countintHet maximale aantal keren dat de splitsing kan plaatsvinden.
startatintDe tekenpositie in de invoertekenreeks waar het zoeken begint.

ReturnValue

Een array van tekenreeksen.

Zie ook

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

Splitst een string op regexp.

static ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, const String &pattern, int count, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout)
ParameterTypeBeschrijving
invoerconst String&Invoertekenreeks.
patroonconst String&Regexp-patroon.
countintMatch aantal limiet.
optiesRegexOptionsOpties voor vergelijken.
matchTimeoutTimeSpanTime-out.

ReturnValue

Array of strings between matchse.

Zie ook

Regex::Split(const String&, const String&, RegexOptions, TimeSpan) method

Splitst een string op regexp.

static ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout)
ParameterTypeBeschrijving
invoerconst String&Invoertekenreeks.
patroonconst String&Regexp-patroon.
optiesRegexOptionsOpties voor vergelijken.
matchTimeoutTimeSpanTime-out.

ReturnValue

Array of strings between matchse.

Zie ook