delphi 实现从下载链接提取文件名的函数


本文整理自网络,侵删。

 

//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 十进制转十六进制

Delphi tms web core 通过url 传递参数

Delphi 简单得多线程应用

Delphi 字符串处理

Delphi对access数据库安全加密方法

decodedate:从一个tdatetime变量中提取年、月、日数值

Delphi incyear、incmonth、incweek、incday、inchour、incminute、incsecond、incmillisecond �c 增时

Delphi byte类型算术运算

Delphi关于邮箱收信的问题

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...