So, I'm trying to create a function which does the following:
- Receive HTML in a string
- Find file paths (in SRC= http://stackoverflow.com/questions/3847247/attributes)
- Only replace image urls starting with the domain example.com
- Only replace images (jpg, jpeg, gif, png)
- Replace the domain of the image with example2.com
- Return HTML with image URLs replaced.