In a lisp function I’ve got the following test with a regular expression that should match any string that starts with a capital letter:
(if (string-match "^[A-Z].+" my-string)
However this matches also the lower case starting strings. What am I missing here?
From
string-matchdescription ( to show it typeC-h forM-x describe-function):Just set
case-fold-searchtonil.