title: jQuery: Find all image links and convert them to some default thumbs?
body: <p>I have WYSIWYG and I don't allow users to upload images, just links to images outside the site.</p>
  
  <p>So I want to find every image link/path and replace it with some default thumb, where user can click and that image will be shown in modal window. I'm using qTip, but that will be my part of the job :)</p>
  
  <p>So if there is:</p>
  
  <pre><code>http://sstatic.net/so/img/logo.png
  </code></pre>
  
  <p>or</p>
  
  <pre><code>http://l.yimg.com/a/i/ww/news/2010/02/22/fries_on_plate-pd.jpg
  </code></pre>
  
  <p>They will be "converted" to something like:</p>
  
  <pre><code>&lt;a href="http://OriginalPathToImage" rel="tool_tip"&gt;&lt;img src="/SomeDefaultImageThumb.jpg" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>So, how to find all images? What is RegExp for finding .jpg, .gif, .png.... or some other solution?</p>