Template:Str rep/doc

From Simple English Wikipedia, the free encyclopedia

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)