本文整理自网络,侵删。
function GetStringBetween(const FullStr, StrLeft, StrRight: String): string;vari,n:integer;begini:=pos(StrLeft,FullStr)+length(StrLeft);n:=pos(StrRight,FullStr)-length(StrLeft)-1;Result:=copy(FullStr,i,n);end;
相关阅读 >>
Delphi 判断两个时间差是否在一个指定范围内 -withinpastyears、withinpastmonths、withinpastweeks、withinpastdays
Delphi fdconnection查看所有表包含用户表和系统表
windows api 的数据类型与 Delphi 数据类型对照表
Delphi 获取随机字符串的方法 thash.getrandomstring
更多相关阅读请进入《Delphi》频道 >>