Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2000 12:52:32 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        "\"Daniel C. Sobral\"" <dcs@newsguy.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: regex(3)
Message-ID:  <20000606125232.A33659@cons.org>
In-Reply-To: <owner-freebsd-archATFreeBSD.ORG--200006042110.GAA00754@daniel.sobral>; from "Daniel C. Sobral" on Mon, Jun 05, 2000 at 12:13:24PM %2B0200
References:  <owner-freebsd-archATFreeBSD.ORG--200006042110.GAA00754@daniel.sobral>

next in thread | previous in thread | raw e-mail | index | archive | help
In <owner-freebsd-archATFreeBSD.ORG--200006042110.GAA00754@daniel.sobral>, "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 <cracauer@bik-gmbh.de> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000606125232.A33659>