本文整理自网络,侵删。
var
sString: string;
iPos,iLen: integer;
begin
sString:= 'http://www.3464.com/article.asp?articleid=4750';
iLen:= Length(sString);
iPos:= Pos('/',sString);
if iPos=0 then
Exit;
sString:= Copy(sString, iPos+2,iLen-iPos);
iPos:= Pos('/',sString);
if iPos=0 then
Exit;
sString:= Copy(sString, 1,iPos-1);
end;
相关阅读 >>
Delphi indy 组件包里的 idhttp 组件使用 get 方法下载文件限速的方法
Delphi 获取image.picture.data的数据
Delphi 得到 winrar 处理解压缩文件的返回值 ?
更多相关阅读请进入《Delphi》频道 >>