I want to run a program that searches for emails... I am NOT email harvesting for any spamming purposes.

Basiccaly on my db I have cos with URLs but no emails. I can extract these URLs to a .txt file and run through commercial software to search the URLs for emails with another .txt output.

I want to include some filtering query in Excel or other desktop program that only outputs the relevant emails i.e. when the bit after @ tallies with the bit after www. e.g. joe@bloggs.com and www.bloggs.com, thereby filtering out any 3rd party irrelevant emails.

Can anyone point me in the right direction?

Many thanks