title: Getting http URL using regex when there are multiple http URLs
body: <p>I want to extract different .swf files from different sites for a project. Different sites use different source methods so I can't use <code>src=</code> or <code>data=</code> in my regex.</p>
  
  <p>I'm able to match the file name with <code>/[\w-]+.swf/g</code> , but when I try to match the full path( <code>http(.*?).swf</code> ) starting with http it matches another http before the path (the first one in the code). Also I can't use <code>src=</code> or <code>data=</code> etc, it must be only the link.</p>
  
  <p>Basically, is there a way to limit the match to the first http found when searching backwards?</p>
  
  <p>If anyone cares to take a look then here's the code: <a href="http://pastebin.com/kT20UqqJ" rel="nofollow">http://pastebin.com/kT20UqqJ</a> .
  And here's a good place to test regex: <a href="http://regex.larsolavtorvik.com/" rel="nofollow">http://regex.larsolavtorvik.com/</a></p>