Moved domain_regex to module level.