Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-10

[regex] : Is someone use SynRegExpr ? RegExpr2 vs SynRegExpr

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

TOUZEAU DAVID

dear

Currently i use RegExpr2
(http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Regexpr2) to perform regex matching..

did SynRegExpr
(http://www.lazarus.freepascal.org/lcl_doc/SynRegExpr.html#link23852) unit is better than RegExpr2 ?

How to use SynRegExpr unit ?

Currently my code to use RegExpr2 is

         rgx:=tregexpr.create;
         rgx.expression:='([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})';
         rgx.ModifierI:=true;
         if rgx.exec(datas) then begin
            fip_server:=rgx.Match[1];
         end;

is SynRegExpr working in the same way ???

best regards

David Touzeau -------------------------- Linux Ubuntu Dapper 6.0.6 FreePascal-Lazarus,perl,delphi,php icq:160018849

Reply by email