zsh-users
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: guckes@math.fu-berlin.de (Sven Guckes)
Cc: mdb@cdc.noaa.gov, zsh-users@math.gatech.edu
Subject: Re: backing up with zsh
Date: Mon, 20 Apr 1998 09:47:14 +0100 (BST)	[thread overview]
Message-ID: <199804200847.JAA09252@taos.demon.co.uk> (raw)
In-Reply-To: <19980417224224.O9638@math.fu-berlin.de> from "Sven Guckes" at Apr 17, 98 10:42:24 pm

Sven Guckes wrote:
>Can I use '|' for "or"?  Example:
>
>   $ echo **/*~*.[Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP][gG]

echo **/*~*.([Gg][Ii][Ff]|[bB][mM][pP]|[jJ][pP](|[Ee])[gG])

>I'd rather be using something like this:
>
>   $ echo **/*~(*.[bmp|gif|jpeg|jpg]/i)
>
>.. where "/i" means "case insensitive".
>Is there a way with zsh globbing?

No.  zsh has glob patterns, not regular expressions.

-zefram


      parent reply	other threads:[~1998-04-20  8:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-17 19:56 Sven Guckes
1998-04-17 20:20 ` Rob Windsor
1998-04-18  9:36   ` TGAPE!
1998-04-18 18:08     ` Bart Schaefer
     [not found] ` <vkzphkchu4.fsf@cdc.noaa.gov>
1998-04-17 20:42   ` Sven Guckes
     [not found]     ` <vkyax4cgur.fsf@cdc.noaa.gov>
1998-04-17 21:00       ` Sven Guckes
1998-04-18  0:44         ` Perl and ZSH (WAS: Re: backing up with zsh) tep
1998-04-17 21:24           ` Bart Schaefer
1998-04-18 10:53           ` Perl and ZSH Jonas Bofjall
1998-04-18  9:53             ` TGAPE!
1998-04-18 18:21               ` Bart Schaefer
1998-05-04 23:47                 ` Zsh and CVS Scott RoLanD
1998-04-18 10:13     ` backing up with zsh Mirar
1998-04-20  8:47     ` Andrew Main [this message]

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=199804200847.JAA09252@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=guckes@math.fu-berlin.de \
    --cc=mdb@cdc.noaa.gov \
    --cc=zsh-users@math.gatech.edu \
    /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).