Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Regex not halt caputre second slash
- X-seq: zsh-workers 52054
- From: Budi <budikusasi@xxxxxxxxx>
- To: Eric Cook <llua@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Regex not halt caputre second slash
- Date: Tue, 15 Aug 2023 06:07:56 +0700
- Archived-at: <https://zsh.org/workers/52054>
- In-reply-to: <f33fc646-f502-dc2b-080c-608f8bdcbdb3@gmx.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH0GyZAr=invyu8z3JBcZuM5YXVBx-PxccGt5485Bg0eZh0TDg@mail.gmail.com> <f33fc646-f502-dc2b-080c-608f8bdcbdb3@gmx.com>
OMG
Finally found one of the most subtle trooubles in Zsh:
MUST ENCLOSE ZSH REGEX IN DOUBLE QUOTE PAIR, " "
THANKS
On 8/14/23, Eric Cook <llua@xxxxxxx> wrote:
> On 8/14/23 06:41, Budi wrote:
>> Zsh pcre (=~) regex of repeated any char. i.e. .* capture the first
>> slash but going on then cease to capture any of the rest string when
>> meet the second slash characters also not capture it
>>
>> Please help solve !
>>
> Can you provide a reproducible example of what you are attempting to do?
> Also [['s =~ operator doesn't conform to PCRE by default, its an ERE
> expression.
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author