Zum Inhalt springen

Vorlage:Replace/Doku

Aus Wikivoyage

Usage

[Bearbeiten]

{{Replace|<string>|<find>|<replacewith>[|count=n]}}

Returns <string> with the n occurrences of <find> replaced with <replacewith>. Omitting count will replace all occurrences

Example

[Bearbeiten]
  • {{Replace|One two two three two four twotwo five|two|NINE}} → One NINE NINE three NINE four NINENINE five
  • {{Replace|One two two three two four twotwo five|two|NINE|count=2}} → One NINE NINE three two four twotwo five

See also

[Bearbeiten]
  • {{str rep}} — replaces only the first occurrence.

Siehe auch

[Bearbeiten]