[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: Use the characters "+" and "-" in regular expressio
From: |
Drew Adams |
Subject: |
RE: [External] : Re: Use the characters "+" and "-" in regular expressions |
Date: |
Wed, 19 May 2021 19:25:52 +0000 |
>> Yes, use character sets, e.g. [+] and [-].
>
> I want to match a space followed by a series of "+" or "-" or "."
Yes, and? The answer is right above your question.
Do you mean a series of one or more or a series of
zero or more? (Or 42 or more or...?) Your problem
statements are piecemeal.
[-+.]* is zero or more. [-+.]+ is one or more.
As Tomas pointed out, you need not escape the `-'.
But it's easier if you do. If not, you need to group
the pattern that gets repeated:
\(-[+.]\)* is zero or more. \(-[+.]\)+ is one or more.
- Re: [External] : Use the characters "+" and "-" in regular expressions, (continued)
- 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, 2021/05/20
- 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 <=
Re: Use the characters "+" and "-" in regular expressions, tomas, 2021/05/19
RE: [External] : Use the characters "+" and "-" in regular expressions, Drew Adams, 2021/05/19