System.RegularExpressions.TRegEx.Matches

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function Matches(const Input: string): TMatchCollection; overload;
function Matches(const Input: string; StartPos: Integer): TMatchCollection; overload;
class function Matches(const Input, Pattern: string): TMatchCollection; overload; static;
class function Matches(const Input, Pattern: string; Options: TRegExOptions): TMatchCollection; overload; static;

C++

TMatchCollection __fastcall Matches(const System::UnicodeString Input)/* overload */;
TMatchCollection __fastcall Matches(const System::UnicodeString Input, int StartPos)/* overload */;
static TMatchCollection __fastcall Matches(const System::UnicodeString Input, const System::UnicodeString Pattern)/* overload */;
static TMatchCollection __fastcall Matches(const System::UnicodeString Input, const System::UnicodeString Pattern, TRegExOptions Options)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.RegularExpressions.pas
System.RegularExpressions.hpp
System.RegularExpressions TRegEx

Description

Renvoie toutes les correspondances présentes dans la chaîne d'entrée.

Matches renvoie toutes les correspondances présentes dans la chaîne Input sous la forme d'une instance de TMatchCollection. Si le paramètre Pattern n'est pas présent, l'expression régulière utilisée est spécifiée dans le constructeur TRegEx.

StartPos spécifie la position de début pour commencer la recherche.

Length spécifie la sous-chaîne, en commençant à StartPos pour correspondre aux expressions régulières.

Voir aussi

Exemples de code