title: javascript regex to extract anchor text and URL from anchor tags
body: <p>I have a paragraph of text in a javascript variable called 'input_content' and that text contains multiple anchor tags/links. I would like to match all of the anchor tags and extract anchor text and URL, and put it into an array like (or similar to) this:</p>
  
  <pre>Array
  (
      [0] => Array
          (
              [0] => &lt;a href="http://yahoo.com"&gt;Yahoo&lt;/a&gt;
              [1] => http://yahoo.com
              [2] => Yahoo
          )
      [1] => Array
          (
              [0] => &lt;a href="http://google.com"&gt;Google&lt;/a&gt;
              [1] => http://google.com
              [2] => Google
          )
  )</pre>
  
  <p>I've taken a crack at it (<a href="http://pastie.org/339755" rel="noreferrer"><a href="http://pastie.org/339755" rel="noreferrer">http://pastie.org/339755</a></a>), but I am stumped beyond this point. Thanks for the help!</p>