Regex to replace domain within links that are not images - by pbcomm Need to replace a domain name on all the links on the page that are not images or pdf files. This would be a full html page received through a proxy service. Read the article