[Top][All Lists]
[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
- Plain text matching with regex: RE_PLAIN, Reuben Thomas, 2010/09/14
- Re: Plain text matching with regex: RE_PLAIN, Eric Blake, 2010/09/14
- Re: Plain text matching with regex: RE_PLAIN, Reuben Thomas, 2010/09/14
- Re: new module 'regex-quote', Eric Blake, 2010/09/20
- Re: new module 'regex-quote', Bruno Haible, 2010/09/20
- Re: new module 'regex-quote', Eric Blake, 2010/09/20
- Re: new module 'regex-quote', Bruno Haible, 2010/09/20
- Re: new module 'regex-quote', Bruce Korb, 2010/09/20
- Re: new module 'regex-quote', Reuben Thomas, 2010/09/20
- Re: new module 'regex-quote', Bruno Haible, 2010/09/20
- Re: new module 'regex-quote', Reuben Thomas, 2010/09/21
- Re: new module 'regex-quote', Bruno Haible, 2010/09/25