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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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 12:45:20 PST Path: newsfeed.google.com!newsfeed.stanford.edu!skynet.be!freenix!enst!enst.fr!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: GNAT.Regexp: Am I missing something? Date: Mon, 23 Apr 2001 21:42:12 +0000 (GMT) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: avanie.enst.fr 988055119 55028 137.194.161.2 (23 Apr 2001 19:45:19 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 23 Apr 2001 19:45:19 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Sender: alves@lux38 In-Reply-To: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.3 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: newsfeed.google.com comp.lang.ada:6867 Date: 2001-04-23T21:42:12+00:00 > > > 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