I was asking the question because I was not sure whether the Erlang's
dialect has a special meaning for "escaped" underscore.
I am afraid it is just a minor bug.
Shall I create an issue ?

-
Andrey

On Fri, Apr 8, 2011 at 1:20 PM, Dirkjan Ochtman <dirk...@ochtman.nl> wrote:

> On Fri, Apr 8, 2011 at 13:16, Andrey Somov <trophyb...@googlemail.com>
> wrote:
> > {ok, Pattern} = re:compile(["^(", Key, "\\s*=)|\\[[a-zA-Z0-9\_-]*\\]"]),
> >
> > What does the single backslash mean (\_)? When I remove it the tests
> still
> > succeed. (to be precise they fail in the same way as with the single
> > backslash)
>
> I'm guessing it's supposed to be an escape character, but I don't know
> of any regex dialect where the underscore is meaningful inside a
> character range.
>
> Cheers,
>
> Dirkjan
>

Reply via email to