Changed attribute _valid_url_regex to be a compiled regex pattern string