title: How to get the second occurrence of a Regexp match in Javascript
body: <p>I want to get two string from the following url, first is <code>-43.575285</code>, the second is <code>172.762549</code></p>
  
  <blockquote>
    <p><a href="http://maps.apple.com/?lsp=9902&amp;sll=-43.575285,172.762549" rel="noreferrer">http://maps.apple.com/?lsp=9902&amp;sll=-43.575285,172.762549</a></p>
  </blockquote>
  
  <p>I wrote a regexp pattern <code>re = /-?\d+\.\d{6}/;</code></p>
  
  <p>which only works for the first value, is there any way the matcher can continue search for the result string and give me the second pattern occurrence? </p>
  
  <p>P.S I remember ruby has the <code>$1-$9</code> to reference the occurrence.</p>