GNU bug report logs - #5970
regex won't do lazy matching

Previous Next

Package: coreutils;

Reported by: a g <mewalig <at> gmail.com>

Date: Mon, 19 Apr 2010 02:02:01 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: a g <mewalig <at> gmail.com>
Cc: 5970 <at> debbugs.gnu.org, Bob Proulx <bob <at> proulx.com>
Subject: bug#5970: regex won't do lazy matching
Date: Mon, 26 Apr 2010 11:36:22 +0200
a g wrote:
> thanks for everyone's help. I agree this can be closed, but not for the
> reasons mentioned (though I appreciate them and they gave me the info I
> needed to find the answer:
> osdir.com/ml/lib.gnulib.bugs/2005-04/msg00027.html). Off to try emacs'
> regex.c instead.
>
> It would be nice if coreutils could offer the emacs regex.c (or some other
> regex that supported non-greedy matching) at least as an additional library
> if not the standard one... but, not my call...

BTW, why do you care what regex code coreutils uses?
Because of expr?  Its use of regexp is tightly specified by POSIX,
so we cannot change it without a very good reason.

There are a few other coreutils programs that use regex.c functions,
but they are not used as frequently.




This bug report was last modified 15 years and 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.