zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@math.gatech.edu, "E. Larry Lidz" <ellidz@eridu.uchicago.edu>
Subject: Re: RegEx glob mode?
Date: Fri, 19 Mar 1999 09:49:31 +0100	[thread overview]
Message-ID: <9903190849.AA12008@ibmth.df.unipi.it> (raw)
In-Reply-To: ""E. Larry Lidz""'s message of "Thu, 18 Mar 1999 20:48:38 NFT." <199903190248.UAA23690@eridu.uchicago.edu>

"E. Larry Lidz" wrote:
> Something that I'd love to see in a shell is a mode to replace normal
> globbing with regex matching. So that things like:
> 
> ls (foo|bar)?baz.*
> 
> would work.

It might be possible to insert an existing regular expression library into
the code (I can't see anyone writing it specially), but actually you can do
most things with the existing code when the `extendedglob' option is set.
In this case, (foo|bar|)baz* will match what you want, or with the
`kshglob' option set, ?(foo|bar)baz* which looks even more like what you
wanted.  Although a good library would probably be a good deal faster than
the existing code for most things.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


      reply	other threads:[~1999-03-19  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-19  2:48 E. Larry Lidz
1999-03-19  8:49 ` Peter Stephenson [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=9903190849.AA12008@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=ellidz@eridu.uchicago.edu \
    --cc=zsh-workers@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).