Template:Str find
Jump to navigation
Jump to search
1
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).
- Warning: if sub_string is empty, then this routine will return 1 !!! This case will often have to be handled specially.
See also
Template:Strfind short can handle longer strings (<99 chars), and gives far better performance, especially for short strings.
Template:String templates see also
ar:قالب:Str find bn:টেমপ্লেট:Str find de:Vorlage:Str find eo:Ŝablono:Lin serĉi es:Plantilla:Str find hsb:Předłoha:Str find id:Templat:Str find it:Template:Str find ja:Template:Str find ur:Template:Str find
The above documentation is transcluded from Template:Str find/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |