regexp: prevent escaped "]" from terminating character class

Each of the following character classes contains an escaped "]":

    /[\]]/
    /[\]x]/
    /[\\\]]/

The following character class does *not* contain an escaped "]":

    /[\\]/
regexp: prevent unescaped "/" in character class from terminating regexp
Merge branch 'pr/160' into develop