regex-quote: Fix creation of POSIX extended regular expressions.
[pspp] / lib / regex-quote.c
index d962e50eeb1a80616872f6f3e47bcde0345be0c7..361cff0770b9b369e9fcb88a0c4b05f04e269090 100644 (file)
@@ -1,5 +1,5 @@
 /* Construct a regular expression from a literal string.
-   Copyright (C) 1995, 2010 Free Software Foundation, Inc.
+   Copyright (C) 1995, 2010-2011 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2010.
 
    This program is free software: you can redistribute it and/or modify
@@ -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)