Fix Bug: RegularExpression Class with Backslash

If there is any regular expression with a class with backslash inside
like in /[\w]*/ the regular expression will be not recognized. This fix
solve this bug.