uses RegExpr;
procedure myregex()
var
savePath: string;
const
Template = '.*/(.*$)?';
with TRegExpr.Create do try
Expression := Template;
if Exec (trim(EDITURL.Text)) then
begin
viaHttpVBS := Match[1] ;
//showmessage(viaHttpVBS);
end;
finally Free;
end;
END;
沒有留言:
張貼留言