Template:Str rep

{{{1}}}

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

Usage

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

Returns string with the first occurrence of find replaced with replacewith. Equivalent to {{#invoke:String|replace|source=string|find|replacewith|1}}.

Example

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

See also

  • {{Replace}} - to replace all occurrences (or a specific number)