Delphi 获取两字符串之间的内容


本文整理自网络,侵删。

 
function GetStringBetween(const FullStr, StrLeft, StrRight: String): string;
var
i,n:integer;
begin
i:=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查看所有表包含用户表和系统表

Delphi基于sobel算子的图像边缘检测

windows api 的数据类型与 Delphi 数据类型对照表

Delphi 获取随机字符串的方法 thash.getrandomstring

Delphi 中文字符串截取

Delphi 在长文件名和短文件名之间转换

Delphi case 语句中使用字符串

Delphi利用scrollbox实现图像漫游

Delphi 下载并运行的代码

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



打赏

取消

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

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

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

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

评论

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