title: extract image path using javascript regex
body: <p>I request information form web service using ajax and this service return image for me and I need to use the image in my code. </p>
  
  <p>my issue with this service, it is return difference of text:</p>
  
  <ul>
  <li>Form 1: "/site/images/test.png"</li>
  <li>Form 2: "/site/images/test.png?size=3"</li>
  <li>Form 3: "<code>&lt;img src='/site/images/test.png /&gt;</code>"</li>
  <li>Form 4: "<code>&lt;img src='/site/images/test.png?size=3' /&gt;</code>"</li>
  <li>Form 4: "<code>&lt;div&gt;&lt;img src='/site/images/test.png?size=3' /&gt;&lt;/div&gt;</code>"</li>
  <li>Form 5: "" return empty string</li>
  </ul>
  
  <p>this service bring data from legacy system and based on the users input that time, I cant change the service. I need way to extract the image path using JavaScript. this path should be the image path only without any tags or query strings.</p>
  
  <p>Note: the Images extension will be any type</p>