Replaced all special characters in the domain directory with prepended backward slash. So that regex will not process those.