User Tools

Site Tools


en:count

This is an old revision of the document!


Count (Function)

Format

count ( haystack_string_expression , needle_expr )
count ( haystack_string_expression , needle_expr , boolean_expression)

returns 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

print count("Hello", "lo")
print count("Buffalo buffalo buffalo.","BUFFALO",true)

will display

1
3

See Also

History

0.9.6.55New to Version
en/count.1471057782.txt.gz · Last modified: 2020/02/28 10:46 (external edit)