TPerlRegExState (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

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