[Lazarus] What's the correct way to use TRegexEngine?

silvioprog silvioprog at gmail.com
Thu Dec 22 20:25:04 CET 2011


2011/12/22 Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk>:
> 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

I can not use the LCL.

-- 
Silvio Clécio
====================================
Site - <silvioprog.com.br>
LazSolutions - <code.google.com/p/lazsolutions>
====================================




More information about the Lazarus mailing list