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