System.RegularExpressions.TRegEx.Matches

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

Properties

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

Description

Returns all the matches present in the input string.

Matches returns all the matches present in the Input string in the form of a TMatchCollection instance. If the Pattern parameter is not present the regular expression used is specified in the TRegEx constructor.

StartPos specifies the starting position to start the search.

Length specifies the substring, starting at StartPos to match with the regular expressions.

See Also


Code Examples