跳至內容

模板:Str rep/doc

維基百科,自由的百科全書

用法[編輯]

{{Str rep|<string>|<find>|<replacewith>}}

在字串<string>中尋找並替換首次出現的某字串<find>為<replacewith>後返回。

範例[編輯]

  • {{str rep|Dogs chase cats|chase|love}} = Dogs love cats

參見[編輯]

  • {{Replace}} - 全部替換某字串