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-23 11:53:00 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.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: 23 Apr 2001 06:33:36 +0100 Organization: CodeFella Message-ID: References: <3AE06CE9.E1725E0C@earthlink.net> <3AE2EF2B.AB07037F@nbi.dk> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 988051932 nnrp-08:29472 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 23 Apr 2001 05:33:36 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: newsfeed.google.com comp.lang.ada:6862 Date: 2001-04-23T05:33:36+00:00 List-Id: Jacob Sparre Andersen 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.