From owner-freebsd-arch Tue Jun 6 3:53:14 2000 Delivered-To: freebsd-arch@freebsd.org Received: from grisu.bik-gmbh.de (grisu.bik-gmbh.de [194.233.237.82]) by hub.freebsd.org (Postfix) with ESMTP id EB6A637C007 for ; Tue, 6 Jun 2000 03:53:08 -0700 (PDT) (envelope-from cracauer@counter.bik-gmbh.de) Received: from counter.bik-gmbh.de (counter.bik-gmbh.de [194.233.237.131]) by grisu.bik-gmbh.de (8.9.3/8.9.3) with ESMTP id MAA25603; Tue, 6 Jun 2000 12:53:03 +0200 (MEST) Received: (from cracauer@localhost) by counter.bik-gmbh.de (8.9.3/8.8.8) id MAA40047; Tue, 6 Jun 2000 12:52:33 +0200 (CEST) (envelope-from cracauer) Date: Tue, 6 Jun 2000 12:52:32 +0200 From: Martin Cracauer To: "\"Daniel C. Sobral\"" Cc: arch@FreeBSD.ORG Subject: Re: regex(3) Message-ID: <20000606125232.A33659@cons.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from "Daniel C. Sobral" on Mon, Jun 05, 2000 at 12:13:24PM +0200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In , "Daniel C. Sobral" wrote: > I have been examining the regex(3) code for one of my projects, and saw > some room for improvement on it. I'd like to ask: > > 1) Does anyone have any strong feelings about me hacking it? > > 2) Can anyone point me to recent regex standards? > > Our grep (GNU grep) supports a different syntax than our library. While > that's normal for GNU add-ons, there are some stuff they *don't* > support, or support with a different syntax. It got me wondering... We have to obey to standards and if they say that some of the tools differ... Here's the official stuff (free login required): http://www.opengroup.org/onlinepubs/007908799/xsh/regcomp.html http://www.opengroup.org/onlinepubs/007908799/xbd/re.html http://www.opengroup.org/onlinepubs/007908799/xcu/grep.html There is no best and fastest and design issues like prefer-longest-match vs. speed must be understood. The O'Reilly on regex is a must-read for this kind of work. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.bik-gmbh.de/~cracauer/ FreeBSD - where you want to go. Today. http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message