Show: Delphi C++
Display Preferences

System.RegularExpressions.TRegEx.Create

From XE2 API Documentation
Jump to: navigation, search

Delphi

constructor Create(const Pattern: string); overload;
constructor Create(const Pattern: string; Options: TRegExOptions); overload;

C++

__fastcall TRegEx(const System::UnicodeString Pattern)/* overload */;
__fastcall TRegEx(const System::UnicodeString Pattern, TRegExOptions Options)/* overload */;
TRegEx() {}

Contents

Properties

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

Description

Creates an instance of the TRegEx record.

Use Create to assign a regular expression Pattern to use in matching. You can also assign TRegExOptions Options to effect how the matching occurs. The regular expression and options can also be assigned in the Replace or Match method.

See Also

Code Examples


Personal tools
Previous Versions
Translations