ढाँचा:Str find long/कागजात
स्वरूप
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" [१]"{{str find long|abc bde|b}}"
gives "2" [२]"{{str find long|abc bde|c}}"
gives "3" [३]"{{str find long|abc bde| }}"
gives "4" [४]"{{str find long|abc bde|d}}"
gives "6" [५]"{{str find long|abc bde|e}}"
gives "7" [६]"{{str find long|abc bde|f}}"
gives "-1" [७]
Applications
[सम्पादन गर्नुहोस्]See also
[सम्पादन गर्नुहोस्]Description of all string templates