Be consistent with backslash escapes in regexp.

Every other backslash in the regexp string was escaped except for the
ones before a $. Consistency helps transplant this regexp into other
languages.