Vorlage:Str find
Aus Kitakien
(Unterschied zwischen Versionen)
Zeile 1: | Zeile 1: | ||
- | <includeonly>{{str_find/logic|{{{1|}}}|{{{2|}}}|{{str_len|{{{2|}}}}}}}</includeonly><noinclude> | + | <includeonly>{{#iferror:{{#titleparts:{{str_find/logic|{{{1|}}}|{{{2|}}}|{{str_len|{{{2|}}}}}}}|1}}|-1}}</includeonly><noinclude> |
<nowiki>{{str_find|</nowiki>''text''|''character''<nowiki>}}</nowiki> = Position of first appearance of ''character'' in ''text''. | <nowiki>{{str_find|</nowiki>''text''|''character''<nowiki>}}</nowiki> = Position of first appearance of ''character'' in ''text''. |
Version vom 02:59, 27. Feb. 2009
{{str_find|text|character}} = Position of first appearance of character in text.
Only searches first 50 characters of text. Returns -1 if character not found in first 50 characters.