TPerlRegExStart (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

Description

This example uses the TPerlRegEx Start property.

Code

//Search through characters 100..200 in S this way:

PerlRegEx1.Subject := S;
PerlRegEx1.Start := 100;
PerlRegEx1.Stop := 200;
PerlRegEx1.MatchAgain;

// This is faster than:

PerlRegEx1.Subject := Copy(S, 100, 100);
PerlRegEx1.MatchAgain;

Uses