bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'regex-quote'


From: Reuben Thomas
Subject: Re: new module 'regex-quote'
Date: Sat, 18 Sep 2010 23:53:36 +0100

On 18 September 2010 23:05, Bruno Haible <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]