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