string prefix ci? - part-cw/lambdanative GitHub Wiki
(string-prefix-ci? pattern str)
string-prefix-ci? returns true if the str begins with the pattern and false otherwise. This is a case insensitive version of string-prefix?
Parameter | Description |
---|---|
pattern | The prefix string to look for at the start of str |
str | Input string |
Example
Example 1: Checking if a string begins with a prefix, case insensitive.
> (define mystr "VAR_X")
> (string-prefix? "var" mystr)
#t