From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b688ddbf65a9e2e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-27 12:18:01 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT.Regexp: Am I missing something? Date: 26 Apr 2001 20:52:24 +0100 Organization: CodeFella Message-ID: References: NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 988399053 nnrp-01:27196 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 26 Apr 2001 19:52:24 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: newsfeed.google.com comp.lang.ada:6999 Date: 2001-04-26T19:52:24+00:00 List-Id: Marius Amado Alves 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