Template:Str rep/doc

From Second Life Wiki
< Template:Str rep
Revision as of 09:26, 15 September 2022 by Gwyneth Llewelyn (talk | contribs) (Shamelessly copied from wikipedia.org)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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}}.

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