[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[External] : Use the characters "+" and "-" in regular expressions
From: |
steve-humphreys |
Subject: |
[External] : Use the characters "+" and "-" in regular expressions |
Date: |
Thu, 20 May 2021 18:34:20 +0200 |
> Sent: Friday, May 21, 2021 at 4:24 AM
> From: "Yuri Khan" <yuri.v.khan@gmail.com>
> To: steve-humphreys@gmx.com
> Cc: "Jean Louis" <bugs@gnu.support>, "help-gnu-emacs@gnu.org"
> <help-gnu-emacs@gnu.org>
> Subject: Re: [External] : Use the characters "+" and "-" in regular
> expressions
>
> 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.
Like this then
(string-match "^[[:blank:]]*$" s)
- [External] : Use the characters "+" and "-" in regular expressions, (continued)
- Re: [External] : Use the characters "+" and "-" in regular expressions, tomas, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, Jean Louis, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, Jean Louis, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, steve-humphreys, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, Jean Louis, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, steve-humphreys, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, Yuri Khan, 2021/05/20
- [External] : Use the characters "+" and "-" in regular expressions,
steve-humphreys <=
- Re: [External] : Use the characters "+" and "-" in regular expressions, Eduardo Ochs, 2021/05/20
- RE: [External] : Use the characters "+" and "-" in regular expressions, Drew Adams, 2021/05/20
- Re: [External] : Use the characters "+" and "-" in regular expressions, Jean Louis, 2021/05/21
- Re: [External] : Use the characters "+" and "-" in regular expressions, Jean Louis, 2021/05/20
- Dash in regexp character classes: Beginnig vs. end [was: Use the characters "+" and "-" in regular expressions], address@hidden, 2021/05/20
- Re: Dash in regexp character classes: Beginnig vs. end [was: Use the characters "+" and "-" in regular expressions], Robert Pluim, 2021/05/20
- RE: [External] : Re: Use the characters "+" and "-" in regular expressions, Drew Adams, 2021/05/19
- RE: [External] : Re: Use the characters "+" and "-" in regular expressions, Drew Adams, 2021/05/19
Re: Use the characters "+" and "-" in regular expressions, tomas, 2021/05/19