comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT.Regexp: Am I missing something?
Date: 23 Apr 2001 06:33:36 +0100
Date: 2001-04-23T05:33:36+00:00	[thread overview]
Message-ID: <x7vy9ssgoy7.fsf@smaug.pushface.org> (raw)
In-Reply-To: 3AE2EF2B.AB07037F@nbi.dk

Jacob Sparre Andersen <sparre@nbi.dk> writes:

> > So, I anticipated that by doing:
> > 
> >    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.



  reply	other threads:[~2001-04-23  5:33 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 [this message]
2001-04-23 21:42     ` Marius Amado Alves
2001-04-26 19:52       ` Simon Wright
replies disabled

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