I have for example custom html document
<html>
<head>
<title>Urls</title>
</head>
<body>
<a href="https://www.google.com">Google</a>
<a href="https://facebook.com">Facebook</a>
<a href="http://www.example.com">Example</a>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h1>Heading</h1>
<a href="www.example.com">Example</a>
</body>
</html>
How I can extract form document domain names contain example.com string?
For example I've this regex <a.+?\s*href\s*=\s*["\']?([^"\'\s>]+)["\']?
which can find all urls from href attribute. But how I use Regex to find a specific URL?