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 10.3.1新的变量的声明方法

aes.pas 和 elaes.pas

Delphi 阿里云发送短信的Delphi单元

Delphi 如何在程序中动态设置墙纸(使用iactivedesktop接口)

Delphi query1 导出csv txt

Delphi getmimetypefromfile 获取文件mime类型

Delphi 自定义产生随机字符串函数

Delphi 减小程序的尺寸(关闭rtti反射机制)

解决 Delphi 程序在不同操作系统中 shellexecute 调用 chrome.exe 偶尔无效的问题

Delphi拷贝整个目录(包括子目录)

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



打赏

取消

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

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

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

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

评论

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