Jump to content

Template:Str rep/doc

From SeptemWiki


Usage

{{Str rep|haystack|needle|pin}}

Returns haystack with the first occurrence of needle replaced with pin.

Example

  • {{str rep|Dogs chase cats|chase|love}} = Script error: No such module "String".

See also

  • [[Template:Replace|Template:Tn]] - to replace all occurrences (Lua based)