Difference between revisions of "Template:Str find"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
Line 3: | Line 3: | ||
<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''. | ||
− | Only searches first 50 characters of ''text''. Returns | + | Only searches first 50 characters of ''text''. Returns -1 if ''sub_string'' not found in first 50 characters. |
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
</noinclude> | </noinclude> |
Revision as of 23:08, 26 February 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.