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