本文整理自网络,侵删。
//uses strutils;
function ExtractUrlFileName(const Url: string): string;
var //www.delphitop.com
str:string;
begin
str:=reversestring(Url);
str:=copy(str,1,pos('/',str)-1);
str:=reversestring(str);
Result:=str;
end;
相反根据链接提取网址 http://www.delphitop.com/html/zifuchuan/1950.html
相关阅读 >>
Delphi代码,直截注入别的进程,之后直截运行在别的进程中的代码
Delphi winapi: extracticon - 获取 exe、dll 或 ico 文件中的图标
更多相关阅读请进入《Delphi》频道 >>