Template:Str find

维基百科,自由的百科全书
跳转至: 导航搜索

1

Documentation icon 模板文档[查看] [编辑] [历史] [刷新]

用法[编辑]

{{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

參見[编辑]

  • Template:Strfind short(如果使用Str find引致模板「擴展深度超出限制」,可嘗試改用Strfind short。)