title: How to get image url from a string in jQuery
body: <p>I have found this:</p>
  
  <pre><code>var reg_exUrl = "/(http|https)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
  </code></pre>
  
  <p>however, there is no defined ending, and i would like the found link to have the ending in: .png OR .jpg OR .gif</p>
  
  <p>I believe i need to add something like <code>(.png|.jpg|.gif)</code> at the end, but i dont know the specific format. Help.</p>