User Tools

Site Tools


en:count

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:count [2016/08/12 21:10]
admin
en:count [2020/02/28 10:46]
Line 1: Line 1:
-===== Count (Function) ===== 
- 
-==== Format ==== 
-**count** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] )\\ 
-**count** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] , [[booleanexpressions|boolean_expression]]) 
- 
-returns [[integerexpressions|integer_expression]] 
- 
-==== Description ==== 
-Return the count of the string //needle// in the string //haystack// You may also specify an optional third value, a boolean value to specify that the search will treat upper and lower case letters the same. 
- 
-==== Example ==== 
-<code> 
-print count("Hello", "lo") 
-print count("Buffalo buffalo buffalo.","BUFFALO",true) 
-</code> 
-will display 
-<code> 
-1 
-3 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#String Handling&noheader}} 
- 
-==== History ====  
-|0.9.6.55|New to Version| 
  
en/count.txt ยท Last modified: 2020/02/28 10:46 (external edit)