قالب:Str find long/doc

من ويكيبيديا، الموسوعه الحره

صفحه متأرشفه و مش للاستخدام

الصفحه دى موش مستخدمه عشان مش بالمصرى و محتفظ بيها بهدف الارشفه بس.

لو سمحت ما تستخدمش الصفحه دى او تعدل فيها و حاول تدور على البديل الموجود او تعمل البديل المناسب.

Usage[تعديل]

{{str find|text|sub_string}} = Position of first appearance of sub_string in text.

  • Only searches first 80 characters of text. Returns -1 if sub_string not found in first 80 characters.
  • Character position is 1 based (not 0 based as usual in calculations).

Examples[تعديل]

  • "{{str find long|abc bde|a}}" gives "1" [1]
  • "{{str find long|abc bde|b}}" gives "2" [2]
  • "{{str find long|abc bde|c}}" gives "3" [3]
  • "{{str find long|abc bde| }}" gives "4" [4]
  • "{{str find long|abc bde|d}}" gives "6" [5]
  • "{{str find long|abc bde|e}}" gives "7" [6]
  • "{{str find long|abc bde|f}}" gives "-1" [7]

Applications[تعديل]

See also[تعديل]

Description of all string templates