System.RegularExpressions.TRegEx.Matches
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 */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.RegularExpressions.pas System.RegularExpressions.hpp |
System.RegularExpressions | TRegEx |
説明
入力文字列に存在するすべての一致を返します。
Matchesは、TMatchCollection インスタンスの形式で入力文字列に存在するすべての一致を返します。Pattern パラメータがない場合、使用された正規表現は TRegEx コンストラクタで指定されます。
StartPos は、検索の開始位置を指定します。
Length は、正規表現と一致させるために StartPos の位置から始まる部分文字列を指定します。