Open main menu

RAD Studio Code Examples β

TPerlRegExState (Delphi)

Description

This example uses the TPerlRegEx State property. You can implement a "find from cursor" function as follows:

Code

PerlRegEx1.Subject := Data.GetString(CursorPosition, Data.DataLength);
PerlRegEx1.State := [preNotBOL];
PerlRegEx1.Match;

Uses