title: get all URLs in a textarea
body: <p>Simple question. Given a text area which might have a few urls copied and pasted, I would like to parse all of them out in to an array. Don't want to replace the contents, but get all the urls in the text area in to an array using Javascript.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><a href="http://jsfiddle.net/sujesharukil/hyEem/19/" rel="nofollow">http://jsfiddle.net/sujesharukil/hyEem/19/</a></p>
  
  <p>Created a fiddle. I have it mostly working. The only issue is, it does not pick up query string parameters. May be that should have been the question.</p>
  
  <p>this is what I put in the text area </p>
  
  <p>www.google.com
  ssdfsdfasdfasdf
  <a href="http://someplace.com?x=sdfsdf" rel="nofollow">http://someplace.com?x=sdfsdf</a></p>
  
  <pre><code>regex = new RegExp(/[-a-zA-Z0-9@:%_\+.~#?&amp;//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&amp;//=]*)?/gi);
  </code></pre>
  
  <p>returns two items, but no query string params for the second one.</p>
  
  <p>Help will be appreciated.</p>