From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31385 invoked by alias); 9 Jul 2003 16:19:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31377 invoked from network); 9 Jul 2003 16:19:15 -0000 Received: from unknown (HELO dberlin.org) (69.3.5.6) by sources.redhat.com with SMTP; 9 Jul 2003 16:19:15 -0000 Received: from [192.168.1.7] (account dberlin HELO dberlin.org) by dberlin.org (CommuniGate Pro SMTP 4.1b8) with ESMTP-TLS id 4510102; Wed, 09 Jul 2003 12:19:14 -0400 In-Reply-To: <200307091550.h69Fo0QW024224@duracef.shout.net> References: <200307091550.h69Fo0QW024224@duracef.shout.net> Mime-Version: 1.0 (Apple Message framework v578) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <149B7D40-B229-11D7-A383-000A95A34564@dberlin.org> Content-Transfer-Encoding: 7bit Cc: gdb-patches@sources.redhat.com, mludvig@suse.cz From: Daniel Berlin Subject: Re: [testsuite] gdb.c++/templates.exp Date: Wed, 09 Jul 2003 16:19:00 -0000 To: Michael Elizabeth Chastain X-SW-Source: 2003-07/txt/msg00182.txt.bz2 On Wednesday, July 9, 2003, at 11:50 AM, Michael Elizabeth Chastain wrote: > Hi Daniel, > >>> \\(unsigned ?(long|)\\); > >> Just to be clear, this regex should accept nothing, "long", "unsigned >> long", and "unsigned". >> This may be *wrong*, but it certainly shouldn't accept "unsignedlong". >> The ? should be applying to "unsigned ", not just the whitespace. > > The ? applies to one atom before it. An atom is just the single > character ' ', not the whole string 'unsigned '. So says "Tcl and the > Tk Toolkit", section 9.3. > > It's been that way in Unix regular expressions since the days of 'ed'. > > What with the fifty different regular expression implementations out > there, maybe one of them does behave that way. Two, actually. > Not TCL or egrep or perl > or vim though. > Of course, I never bothered to use one of these, i was working with a C++ regex engine. > Michael C