Template:Str rep/doc
< Template:Str rep
Jump to navigation
Jump to search
Revision as of 09:26, 15 September 2022 by Gwyneth Llewelyn (talk | contribs) (Shamelessly copied from wikipedia.org)
This is a documentation subpage for Template:Str rep. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
{{Str rep|string|find|replacewith}}
Returns string with the first occurrence of find replaced with replacewith. Equivalent to {{#invoke:String|replace}}.
Example
{{str rep|Dogs chase cats. Cats chase mice.|chase|love}}
= love- Dogs*
- Dogs *
- Dogs c*
- Dogs ch*
- Dogs cha*
- Dogs chas*
- Dogs chase*
- Dogs chase *
- Dogs chase c*
- Dogs chase ca*
- Dogs chase cat*
- Dogs chase cats*
- Dogs chase cats.*
- Dogs chase cats. *
- Dogs chase cats. *
- Dogs chase cats. C*
- Dogs chase cats. Ca*
- Dogs chase cats. Cat*
- Dogs chase cats. Cats*
- Dogs chase cats. Cats *
- Dogs chase cats. Cats c*
- Dogs chase cats. Cats ch*
- Dogs chase cats. Cats cha*
- Dogs chase cats. Cats chas*
- Dogs chase cats. Cats chase*
- Dogs chase cats. Cats chase *
- Dogs chase cats. Cats chase m*
- Dogs chase cats. Cats chase mi*
- Dogs chase cats. Cats chase mic*
- Dogs chase cats. Cats chase mice*
- Dogs chase cats. Cats chase mice.*
See also
- {{Replace}} - to replace all occurrences (or a specific number)
Template:String-handling templates