zsh-workers
 help / color / mirror / code / Atom feed
From: Budi <budikusasi@gmail.com>
To: Eric Cook <llua@gmx.com>
Cc: zsh-workers@zsh.org
Subject: Re: Regex not halt caputre second slash
Date: Tue, 15 Aug 2023 06:07:56 +0700	[thread overview]
Message-ID: <CAH0GyZBe9aUnnprCsERrW1sE4aGkQBcYwdwFZ7kGMmXG2-dAqQ@mail.gmail.com> (raw)
In-Reply-To: <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@gmx.com> 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.
>
>


  reply	other threads:[~2023-08-14 23:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-14 10:41 Budi
2023-08-14 12:59 ` Eric Cook
2023-08-14 23:07   ` Budi [this message]
2023-08-15  0:24     ` Lawrence Velázquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH0GyZBe9aUnnprCsERrW1sE4aGkQBcYwdwFZ7kGMmXG2-dAqQ@mail.gmail.com \
    --to=budikusasi@gmail.com \
    --cc=llua@gmx.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).