[Lazarus] What's the correct way to use TRegexEngine?
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu Dec 22 19:30:33 CET 2011
silvioprog wrote:
> Hi,
>
> The correct way to use RegEx is like I'm showing below? (I saw this
> code in bugtracker)
regex1 := TRegExpr.Create;
regex1.Expression := pattern1;
with regex1 do begin
if Exec(test1) then begin
WriteLn('match');
end else
WriteLn('no match');
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list