From: Marius Amado Alves <alves@systran.lu>
To: comp.lang.ada@ada.eu.org
Subject: Re: GNAT.Regexp: Am I missing something?
Date: Mon, 23 Apr 2001 21:42:12 +0000 (GMT)
Date: 2001-04-23T21:42:12+00:00 [thread overview]
Message-ID: <mailman.988055118.18418.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <x7vy9ssgoy7.fsf@smaug.pushface.org>
> > > 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.
--
Marius Amado Alves
alves@systran.lu
Project Tradaut-Pt
Systran Luxembourg
12, Rue de Vianden
L-2680 LUXEMBOURG
Tel 352 + 45 46 53
Fax 352 + 45 74 75
Mob 351 +939354002
next prev parent reply other threads:[~2001-04-23 21:42 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 [this message]
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