User Tools

Site Tools


en:countx

Differences

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

Link to this comparison view

en:countx [2016/08/12 21:16]
admin
en:countx [2020/02/28 10:46]
Line 1: Line 1:
-===== Countx (Function) ===== 
- 
-==== Format ==== 
-**countx** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] ) 
- 
-returns [[integerexpressions|integer_expression]] 
- 
-==== Description ==== 
-Return the count of the regular expression //regex// in the string //haystack//. 
- 
- 
-==== Example ==== 
-<code> 
-print countx("Hello", "[hH]") 
-print countx("Buffalo buffalo buffalo.","[Bb]uffalo") 
-</code> 
-will display 
-<code> 
-1 
-3 
-</code> 
- 
-==== Notes ==== 
-By default the nature of regular expressions is "greedy". This behaviour can be changed using the [[regexminimal|RegexMinimal]] statement. 
- 
-==== See Also ==== 
-{{page>en:start#String Handling&noheader}} 
- 
-==== History ====  
-|0.9.6.56|New to Version| 
  
en/countx.txt ยท Last modified: 2020/02/28 10:46 (external edit)