模板:Str rep
{{{1}}}
此模板使用Lua语言: |
用法
{{Str rep|<string>|<find>|<replacewith>}}
在字串<string>中寻找并替换首次出现的某字串<find>为<replacewith>后返回。
范例
{{str rep|Dogs chase cats|chase|love}}
= Dogs love cats
参见
- {{Replace}} - 全部替换某字串
|
上述文档嵌入自Template:Str rep/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |