Méthode System::Text::RegularExpressions::Regex::Match

Regex::Match(const String&) method

Correspond l’expression régulière à la chaîne.

MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input)
ParamètreTypeDescription
inputconst String&Chaîne cible.

ReturnValue

Match value containing match status and submatches.

Voir aussi

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

Correspond l’expression régulière à la chaîne.

MatchPtr System::Text::RegularExpressions::Regex::Match(const String &input, int startat, int length=0)
ParamètreTypeDescription
inputconst String&Chaîne cible.
startatintIndice de début.
longueurintNombre de caractères à parcourir (0 pour parcourir toute la chaîne).

ReturnValue

Match value containing match status and submatches.

Voir aussi

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

Correspond la chaîne et le modèle.

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)
ParamètreTypeDescription
inputconst String&Chaîne d’entrée.
motifconst String&Modèle Regexp.
optionsRegexOptionsOptions de correspondance.
matchTimeoutTimeSpanDélai d’attente.
startatintMatch position de début.
longueurintNombre de caractères à parcourir (0 désactive la limite).

ReturnValue

Première correspondance trouvée.

Voir aussi