help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Use the characters "+" and "-" in regular expressions


From: Yuri Khan
Subject: Re: [External] : Use the characters "+" and "-" in regular expressions
Date: Thu, 20 May 2021 23:24:42 +0700

On Thu, 20 May 2021 at 21:50, <steve-humphreys@gmx.com> wrote:

> I have settled with
>
>   (string-match "^[:blank:]*$" s)
>
> This would match only strings with spaces, not sentences with spaces.  What 
> do you think?

No, that will match lines consisting of colons and letters a, b, k, l,
and n. To use a named character class, you need double brackets.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]