I want regex code for only scraping .com domains without any subfolders or anything after the .com.
for example: on a webpage with a list of urls i want to scrape http://www.google.com and http://www.yahoo.com but not http://www.google.com/hello.html or http://www.yahoo.com/news/