Mercurial > hg > octave-lojdl > gnulib-hg
changeset 14409:ee532a615968
regex-quote: Fix creation of POSIX extended regular expressions.
* lib/regex-quote.c (ere_special): Add grouping and alternation
operators.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 06 Mar 2011 14:25:49 +0100 |
parents | 3d18c39304e4 |
children | 0a972f366396 |
files | ChangeLog lib/regex-quote.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-06 Bruno Haible <bruno@clisp.org> + + 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 <bruno@clisp.org> doc: Improve doc regarding autopoint vs. gnulib.
--- 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)