title: Facebook feed - remove extra Facebook JS from anchor
body: <p>Please help me to replace all the additional Facebook information from here using C# .net <code>Regex Replace</code> method.  </p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>&lt;a href="/l.php?u=http%3A%2F%2Fon.fb.me%2FOE6gnB&amp;amp;h=yAQFjL0pt&amp;amp;s=1" target="_blank" rel="nofollow nofollow" onmouseover="LinkshimAsyncLink.swap(this, &amp;quot;http:\/\/on.fb.me\/OE6gnB&amp;quot;);" onclick="LinkshimAsyncLink.swap(this, &amp;quot;\/l.php?u=http\u00253A\u00252F\u00252Fon.fb.me\u00252FOE6gnB&amp;amp;h=yAQFjL0pt&amp;amp;s=1&amp;quot;);"&gt;http://on.fb.me/OE6gnB&lt;/a&gt;somehtml
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>somehtml &lt;a href="http://on.fb.me/OE6gnB"&gt;on.fb.me/OE6gnB&lt;/a&gt; somehtml
  </code></pre>
  
  <p>I tried following regex but they didn't work for me</p>
  
  <pre><code>searchPattern = "&lt;a([.]*)?/l.php([.]*)?(\"&gt;)?([.]*)?(&lt;/a&gt;)?";
  replacePattern = "&lt;a href=\"$3\" target=\"_blank\"&gt;$3&lt;/a&gt;";
  </code></pre>
  
  <p>Thanks</p>