本文整理自网络,侵删。
//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 d10.x 在android 9及更高版本下使用Delphi获取设备序列号?
Delphi tms web core 通过url 传递参数
decodedate:从一个tdatetime变量中提取年、月、日数值
Delphi incyear、incmonth、incweek、incday、inchour、incminute、incsecond、incmillisecond �c 增时
更多相关阅读请进入《Delphi》频道 >>