aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 

4.133 - [count] Built-In

Mnemonic aid: count for COUNT occurences in content

Returns the number of occurrences of pattern in content. overlaps=yes will return 2 for aa in aaa; otherwise aa in aaa returns 1. casesens=yes returns 1 for AA in AAa; otherwise returns 2 for AA in AAa. The two options may be combined. sep=X defaults to a comma:

[count (sep=X,)(overlaps=yes,)(casesens=yes,)patternXcontent]

[count Aa,AaAaaa]
[count overlaps=yes,Aa,AaAaaa]
[count casesens=yes,Aa,AaAaaa]
[count casesens=yes,overlaps=yes,Aa,AaAaaa]

3 5 2 2
Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7