On 18 September 2010 23:05, Bruno Haible <br...@clisp.org> wrote: > Reuben Thomas wrote: >> > it's a function which transforms a string to a string. >> > I'm sure this function has been implemented many times already. The one I >> > wrote is called 'regexp-quote' [1][2]. >> >> Great, can we have it in gnulib? Does it work for all syntaxes? > > It needs a flag to distinguish the syntax, since BRE and ERE have different > syntaxes. Here's a suggested module:
Great, thanks, though at 3 new functions and about 50 lines of code it does illustrate why I prefer RE_PLAIN. Nonetheless, if you put this in gnulib I'd probably use it rather than RE_PLAIN, just because it's there. -- http://rrt.sc3d.org