模板: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子頁面中添加分類。本模板的子頁面。 |