I use TRegExpr v.0.952 and now i want use RegexBuddy, but i can't replace code. Can u help me?
var
Temp: TStringList;
Index: Integer;
regex: TRegExpr;
begin
Temp:= TStringList.Create();
regex := TRegExpr.create();
regex.Expression := '(?m)(?g)^ftp:.+';
try
for Index:= 0 to FList.Count - 1 do
begin
regex.exec(FList[index]);
if (regex.Match[0] <> '') and (Temp.IndexOf(regex.Match[0]) = -1) then
Temp.Add(regex.Match[0]);
end;
i paste and replase code from RegexBuddy for delphi:
Regex := TPerlRegEx.Create(nil);
Regex.RegEx := '(?m)(?g)^ftp:.+';
Regex.Options := [preMultiLine];
but i've got a error Undeclared identifier: 'exec'