Delphi 字符串替换


本文整理自网络,侵删。

 
替换:

//--------------------------------------------------------------------------------
var
  str1, str2: string;
begin
  str1 := 'ABC ABC ABC';
  str2 := str1.Replace('A', '*');                 // *BC *BC *BC
  str2 := str1.Replace('A', '*', [rfIgnoreCase]); // *BC ABC ABC
end;

相关阅读 >>

Delphi 中相对路径与绝对路径函数

Delphi根据进程id获取进程路径

Delphi is1251char

Delphi 获取任意月份总共有多少天数

Delphi中分隔字符串函数的使用

Delphi datasnap 获取客户端ip

Delphi 用image 画图

Delphi 申请管理员权限级别

Delphi fdquery 判断记录为空

Delphi调用android振动功能

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



打赏

取消

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

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

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

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

评论

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