delphi SysUtils.StringReplace - 替换


本文整理自网络,侵删。

 SysUtils.StringReplace - 替换
举例:
--------------------------------------------------------------------------------

var
ss,s: string;
begin
ss := '2007-2008';
s := StringReplace(ss,'00','x',[rfReplaceAll]);
ShowMessage(s); //2x7-2x8

s := StringReplace(ss,'00','x',[rfIgnoreCase]);
ShowMessage(s); //2x7-2008
end;

相关阅读 >>

Delphi 检验指定字符串网址是否输入正确

Delphi android gps服务

Delphi comparedatetime、comparedate、comparetime、samedatetime、samedate、sametime �c 对比时间的函数

python4Delphi 示例应用程序在 Delphi 应用程序中运行简单的 python 脚本

Delphi shutdown() 关机

Delphi 10中实现android的广播接收器

Delphi 在电脑屏幕上显示图片

Delphi 关于构造方法的重写

Delphi遍历文件目录

Delphi createprocesswithlogonw用法

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



打赏

取消

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

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

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

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

评论

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