On Tue, May 18, 2021 at 01:26:12PM +0200, Christopher Dimech wrote: [...] > > 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. > > The docstring for string-match is > > "Return index of start of first match for REGEXP in STRING, or nil." > > I find the description different from what string-match actually returns. ? Cheers - t