Template:Str rep/doc

From MOASSpedia
Jump to navigation Jump to search

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)