Template:Str rep/doc

UsageEdit

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

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

ExampleEdit

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

See alsoEdit

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