I've been trying to do a regex to get an image out of a html string
preg_replace('/img src="(["]*)/e', '\1', $html_string())
However that isnt working. I basically need to get the first image in the string
You don't want the beginning-of-string anchor (the first "") and you don't want the execute-as-code modifier (the "e").