Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

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 "\"")))
Clone this wiki locally