On Tue, May 18, 2021 at 12:08:42PM +0200, Christopher Dimech wrote: > How is it that the following returns nil? > > (setq sa (string-match "[^[:blank:]]" " ")) Because you stated to match any non-blank character and there are only blank characters to match. Cheers - t