System::Text::RegularExpressions::Regex::Matches méthode

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

Obtient toutes les correspondances de l’expression régulière dans la chaîne donnée en effectuant des correspondances répétées.

MatchCollectionPtr System::Text::RegularExpressions::Regex::Matches(const String &input, int startat=0)
ParamètreTypeDescription
inputconst String&Chaîne d’entrée.
startatintIndice à partir duquel commencer la correspondance.

ReturnValue

Collection de toutes les correspondances trouvées.

Voir aussi

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

Obtient toutes les correspondances entre la chaîne et le modèle.

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)
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

Toutes les correspondances trouvées par des correspondances répétées.

Voir aussi