模板:Str find/doc

用法

{{str find|text|sub_string}} = 在字串text中搜寻并返回特定字串sub_string的位置。

  • 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

参见

  • {{Strfind short}}(如果使用Str find引致模板“扩展深度超出限制”,可尝试改用Strfind short。)