Template:Str find: Difference between revisions
Template page
More actions
m moved User:Dragons flight/str find to Template:Str find |
No edit summary |
||
| Line 56: | Line 56: | ||
<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''. | ||
Only searches first 50 characters of ''text''. Returns -1 if ''character'' not found in first 50 characters.</noinclude> | Only searches first 50 characters of ''text''. Returns -1 if ''character'' not found in first 50 characters. | ||
[[Category:String manipulation templates]] | |||
</noinclude> | |||
Revision as of 02:14, 27 February 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.