I want to capitalize letters that follow colons. Here is the code:
(replace-regexp-in-string ": \w" 'upcase ": really")
The result I expected is : Really
. Instead I get : really
.
Similarly, this also doesn't work:
(replace-regexp-in-string ": [:alpha:]" 'upcase ": really")
But this works:
(replace-regexp-in-string ": r" 'upcase ": really")
And this, too:
(replace-regexp-in-string ": [:alpha:]" 'upcase ": alright")
My LANG
environment variable is set to en_US.UTF-8
.