Template:Str rep

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

{{{1}}}

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

Usage[change source]

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

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

Example[change source]

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

See also[change source]

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