【发布时间】:2017-11-04 21:17:55
【问题描述】:
$text_string = "One One One,One.One OneTwo, Onetwo .Onetwo TwoOne One";
我想用单独或特殊字符之间或字符串开头/结尾的“三”替换单词“一”。 有人有想法吗?
结果必须是:
$text_string = "Three Three Three,Three.Three OneTwo, Onetwo .Onetwo TwoOne Three";
【问题讨论】:
标签: php regex str-replace