fixed a bug in regex subdomains
using regexps instead of splitting on .