Vorlage:Str find

Aus Kitakien

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(optional subst)
K (Reverted edits by Happy-melon (talk) to last version by Dragons flight)
Zeile 1: Zeile 1:
-
<includeonly>{{{{{subst|}}}#titleparts:{{{{{subst|}}}str_find/logic|{{{1|}}}|{{{2|}}}|{{{{{subst|}}}str_len|{{{2|}}}|subst={{{subst|}}}}}|subst={{{subst|}}}}}-1|1}}</includeonly><noinclude>
+
<includeonly>{{#titleparts:{{str_find/logic|{{{1|}}}|{{{2|}}}|{{str_len|{{{2|}}}}}}}-1|1}}</includeonly><noinclude>
<nowiki>{{str_find|</nowiki>''text''|''sub_string''<nowiki>}}</nowiki> = Position of first appearance of ''sub_string'' in ''text''.
<nowiki>{{str_find|</nowiki>''text''|''sub_string''<nowiki>}}</nowiki> = Position of first appearance of ''sub_string'' in ''text''.

Version vom 17:32, 23. Mär. 2009


{{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.

Persönliche Werkzeuge