From: Bruno Haible Date: Sun, 6 Mar 2011 13:25:49 +0000 (+0100) Subject: regex-quote: Fix creation of POSIX extended regular expressions. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ff7b70e24f0e84e9f65ef6d021ff239cad0b2b4;p=pspp regex-quote: Fix creation of POSIX extended regular expressions. * lib/regex-quote.c (ere_special): Add grouping and alternation operators. --- diff --git a/ChangeLog b/ChangeLog index 5413efc5dc..6ceb41c1f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-06 Bruno Haible + + regex-quote: Fix creation of POSIX extended regular expressions. + * lib/regex-quote.c (ere_special): Add grouping and alternation + operators. + 2011-03-05 Bruno Haible doc: Improve doc regarding autopoint vs. gnulib. diff --git a/lib/regex-quote.c b/lib/regex-quote.c index 9e43733b6b..361cff0770 100644 --- a/lib/regex-quote.c +++ b/lib/regex-quote.c @@ -29,7 +29,7 @@ static const char bre_special[] = "$^.*[]\\"; /* Characters that are special in an ERE. */ -static const char ere_special[] = "$^.*[]\\+?()"; +static const char ere_special[] = "$^.*[]\\+?{}()|"; size_t regex_quote_length (const char *string, int cflags)