System.RegularExpressions.TRegEx.IsMatch
Delphi
function IsMatch(const Input: string): Boolean; overload;
function IsMatch(const Input: string; StartPos: Integer): Boolean; overload;
class function IsMatch(const Input, Pattern: string): Boolean;overload; static;
class function IsMatch(const Input, Pattern: string; Options: TRegExOptions): Boolean; overload; static;
C++
bool __fastcall IsMatch(const System::UnicodeString Input)/* overload */;
bool __fastcall IsMatch(const System::UnicodeString Input, int StartPos)/* overload */;
static bool __fastcall IsMatch(const System::UnicodeString Input, const System::UnicodeString Pattern)/* overload */;
static bool __fastcall IsMatch(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
Indicates if a match is present in the input string.
IsMatch returns a boolean indicating whether a match is present in the Input string. 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.