comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT.Regexp: Am I missing something?
Date: 26 Apr 2001 20:52:24 +0100
Date: 2001-04-26T19:52:24+00:00	[thread overview]
Message-ID: <x7vy9snxwuf.fsf@smaug.pushface.org> (raw)
In-Reply-To: mailman.988055118.18418.comp.lang.ada@ada.eu.org

Marius Amado Alves <alves@systran.lu> writes:

> > > >    File_Regexp := Compile("*.log", Glob => True);
> > > > 
> > > > I would end up with a regular expression that would match filenames
> > > > ending in ".log".  However, that's not what's happening, none of my
> > > > ".log" files get matched with that expression.
> > > 
> > > I would guess that the problem is that the function actually expects
> > > "true" regular expressions. I.e. "^.*[.]log$" and not "*.log".
> > 
> > No, the clue's in the "Glob => True"; given that, the function's
> > expecting glob-stype regular expressions, as OP expected.
> 
> Not clear.
> 
> The familiar types are exactly two:
> 
>   1. regular expression (perhaps of an "extended" strand like PERL's)
> 
>   2. Unix filename matching expression (with characters '*' and '?')
> 
> Please match Glob, "glob-stype", "OP" and any other strange names to the
> familiar domain.

Given the context I thought they would be familiar. Sorry.

For some arcane reason, 'glob' was the word chosen by the early Unix
implementers to describe the shell style of pattern matching.

"glob-stype" is a typo for "glob-type".

OP means "original poster", ie the person who started the thread.

HTH (hope that helps)

-Simon



      reply	other threads:[~2001-04-26 19:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-20 18:04 GNAT.Regexp: Am I missing something? Marc A. Criley
2001-04-22 14:48 ` Jacob Sparre Andersen
2001-04-23  5:33   ` Simon Wright
2001-04-23 21:42     ` Marius Amado Alves
2001-04-26 19:52       ` Simon Wright [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox