|
From: | Jean Louis |
Subject: | Re: Determining existence of text following point |
Date: | Tue, 18 May 2021 14:56:35 +0300 |
User-agent: | Mutt/2.0.6 (2021-03-06) |
* Christopher Dimech <dimech@gmx.com> [2021-05-18 14:27]: > > > (setq sa (string-match "[^[:blank:]]" " ")) > I find the description different from what string-match actually > returns. The symbol ^ means "not following", and that regular expression means match non-blanks. (string-match "[^[:blank:]]" " ") ⇒ nil (string-match "[[:blank:]]" " ") ⇒ 0 -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ https://rms-support-letter.github.io/
[Prev in Thread] | Current Thread | [Next in Thread] |