Template:Str find
1
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template is used to do something.
- Dependencies
- Syntax
- {{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.
| This page uses Creative Commons Licensed content from Wikipedia (view authors). |
Visit Template:Str find/doc to edit this text! (How does this work?)
Done editing it? Refresh this page! (Why?)
Done editing it? Refresh this page! (Why?)