I have a string, inside of that I have an image:
"<p><img src="http://yahoo.com/testfolder/userdata/editoruploadimages/confused man.jpg" /></p>"
I could not fetch the image URL with my regular expression. My code is:
preg_match_all("/src=([^\\s]+)/", $questArr_str, $images);
This code stops its execution when it encounters the space in the image name. It only returns "http://yahoo.com/testfolder/userdata/editoruploadimages/confused
The returned string should be:
"http://yahoo.com/testfolder/userdata/editoruploadimages/confused man.jpg"