title: Match all URLs exclude jpg,gif,png
body: <p>I want to match all URLS but exclude image urls from beeing matched with that regex: jpe?g|gif|png .</p>
  
  <p>\b(?:https?|ftp|file)://[-A-Z0-9+&amp;@#/%?=~_|$!:,.;]*A-Z0-9+&amp;@#/%=~_|$</p>
  
  <p>The problem is that the part with the exclude is not working like this: (?!jpe?g|gif|png)</p>
  
  <p>Does anyone have a solution for it?</p>
  
  <p>Example:</p>
  
  <p>not Matchen:</p>
  
  <pre><code>http://example.com/example.jpg
  http://example.com/example231/example.gif
  </code></pre>
  
  <p>Match:</p>
  
  <pre><code>http://example.com/example.html
  http://example.com/example/?id=4331
  http://example.com/example/example/ex_ample/ex-ample/?id=4331  
  </code></pre>