el:count [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

el:count

## Count

### Format

count ( haystack , needle )
count ( haystack , needle , caseinsensitive)

### Description

Return the count of the string needle in the string haystack. You may also specify an optional boolean value caseinsensitive 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

### New to Version

0.9.6.55

el/count.txt · Last modified: 2014/01/11 23:26 (external edit)