I have a string, inside of that I have an image:
\"<
<
The parts that reads ([^\s]+) means select anything that isn't a space.
([^\s]+)
Maybe try something like:
/src="([^"]+)"/
Which is select anything that isn't a double quote.