Changed attribute _valid_url_regex to be a compiled string