System.RegularExpressions.TRegEx.Matches

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.RegularExpressions.pas
System.RegularExpressions.hpp
System.RegularExpressions TRegEx

Beschreibung

Gibt alle Übereinstimmungen zurück, die im Eingabe-String vorhanden sind.

Matches gibt alle Übereinstimmungen zurück, die im Input-String als eine TMatchCollection-Instanz vorhanden sind. Wenn der Parameter Pattern nicht vorhanden ist, wird der verwendete reguläre Ausdruck durch den TRegEx-Konstruktor angegeben.

StartPos gibt die Anfangsposition für den Beginn der Suche an.

Length gibt den Teilstring (beginnend bei StartPos) an, der mit den regulären Ausdrücken verglichen werden muss.

Siehe auch

Codebeispiele