$page =~m|(?:.*?)<a href(?:\s?)=(?:\s?)"(http://(?:.*?)[^netscape\.com|^microsoft\.com](?:.*?))"|is; $url_containing_neither_value = $1;