With PHP, how can I isolate the contents of the src attribute from $foo? The end result I\'m looking for would give me just \"http://example.com/img/image.jpg\"
preg_match solves this problem nicely.
preg_match
See my answer here: How to extract img src, title and alt from html using php?