[fpc-pascal] [regex] : Is someone use SynRegExpr ? RegExpr2 vs SynRegExpr
TOUZEAU DAVID
david.touzeau at fr.kaspersky.com
Mon Oct 16 01:53:07 CEST 2006
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
More information about the fpc-pascal
mailing list