Vorlage:Str find

Aus Bayernflora
Version vom 23. Oktober 2013, 12:24 Uhr von Iris Leininger (Diskussion | Beiträge) (1 Version)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
1
[Bearbeiten] [Aktualisieren] Template-info.svg Dokumentation der Vorlage

Usage

{{str find|text|sub_string}} = Position of first appearance of sub_string in text.

  • Only searches first 50 characters of text. Returns -1 if sub_string not found in first 50 characters.
  • Character position is 1 based (not 0 based as usual in calculations