couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Somov <trophyb...@googlemail.com>
Subject couch_config_writer.erl: meaning of single backslash in regular expression
Date Fri, 08 Apr 2011 11:16:08 GMT
Hi all,
the line 34 of couch_config_writer.erl (
https://svn.apache.org/repos/asf/couchdb/trunk/src/couchdb/couch_config_writer.erl
)
contains a regular expression:

{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)

-
Andrey

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message