A stategy for parsing favicon locations?
<p><strong>Linked IN</strong></p>

<pre><code>No link...Use default location.
http://www.linkedin.com/favicon.ico
</code></pre>

<p><strong>Twitter</strong></p>

<pre><code>  &lt;link href="/phoenix/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt;
</code></pre>

<p><strong>Pinterest</strong></p>

<pre><code>&lt;link rel="icon" href="http://passets-cdn.pinterest.com/images/favicon.png" type="image/x-icon" /&gt;
</code></pre>

<p><strong>Facebook</strong></p>

<pre><code>&lt;link rel="shortcut icon" href="https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" /&gt;
</code></pre>

<p>I've determined that the only 100% way to find a favicon is to check the source and see where the link is.  </p>

<ul>
<li>Default location is not always used.  Note first 2 examples.  </li>
<li>Google API works only about 85% of the time.  <a href="http://www.google.com/s2/favicons?domain=%27path.com%27" rel="nofollow">Try It Out</a></li>
</ul>

<p>Is there a function that can parse this info out?  Or is there a good strategy for using a regex to pull it out manually.</p>

<p>I will be parsing the html server side to get this info.</p>

<p><strong>Ideas:</strong></p>

<p>Regex Example: <a href="http://regexpal.com/" rel="nofollow">Try Here</a>.  Seems to easy...but here is a starting point.</p>

<pre><code>&lt;link\srel="[Ss]hortcut [Ii]con"\shref="(.+)"(.+)&gt;
</code></pre>
