[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extended regex badness (Was: Re: [Nano-devel] homepage - "latest
From: |
David Lawrence Ramsey |
Subject: |
Re: Extended regex badness (Was: Re: [Nano-devel] homepage - "latest version 1.0.9") |
Date: |
Wed, 21 Aug 2002 19:26:44 -0700 (PDT) |
--- Chris Allegretta <address@hidden> wrote:
<snip>
>In an attempt to (1) get back into this whole developer thing and (2)
>carry out Sven's request, I noticed that the extended regex code seems
>to have broken my all capital regex ("\<[A-Z_]\{2,\}\>"). Is this
>because the extended regex syntax for this would be different?
Apparently so; sorry I missed that. Changing the "\{" and
"\}" to "{" and "}" in the c-file regex fixes it.
I just looked it up. According to the regex(7) manpage, {
and } denote bounds in extended regexps, while in ordinary
regexps, \{ and \} denote bounds, and { and } are ordinary
characters. So changing the \{ and \} in the c-file regex
to { and } will fix it. Sorry I missed that; I apparently
tested all the regex-using functions except for color ...
_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!
_____________________________________________________________
Promote your group and strengthen ties to your members with address@hidden by
Everyone.net http://www.everyone.net/?btn=tag
- Re: Extended regex badness (Was: Re: [Nano-devel] homepage - "latest version 1.0.9"),
David Lawrence Ramsey <=