string count - part-cw/lambdanative GitHub Wiki

(string-count str pattern)

string-count return the number of occurrences of pattern in str

Parameter Description
str Input string
pattern String pattern to search for

Example

Example 1: As used in csv module - check if the number of " are balanced.

(oddq (odd? (string-count current "\"")))