Template:Str rep

Jump to navigation Jump to search

{{{1}}}

Template documentation[view] [edit] [history] [purge]

Usage[edit source]

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

Returns <string> with the first occurrence of <find> replaced with <replacewith>.

Example[edit source]

  • {{str rep|Dogs chase cats. Cats chase mice|chase|love}} = Dogs love cats. Cats chase mice

See also[edit source]

  • {{Replace}} - to replace all occurrences (Lua based)

External links[edit source]