Ok here is the full html text im working on
===============================================
<html dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><base href="https://login.mashup.com:44329/pp650/"/><noscript><meta http-equiv="Refresh" content="0; URL=https://login.mashup.com:44329/jsDisabled.srf?lc=1033"/></noscript><title>Sign In</title><meta name="PageID" content="i5030"/><meta name="SiteID" content="252812"/><meta name="ReqLC" content="1033"/><meta name="LocLC" content="1033"/><script type="text/javascript">window.name="msnMain";function Nav(s){ var u;switch(s){ case "reg":u="https://accountservices.nihilist-int.net:44302/reg.srf?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&id=252812&bk=1228952638&cru=https://login.mashup.com:44329/ppsecure/post.srf%3fwa%3dregex1.0%26rpsnv%3d2%26rver%3d5.0.3263.0%26wp%3dMBI_SSL%26wreply%3dhttps:%252F%252Fmylabs.mashup.com%252Fecp%252F%26id%3d252812&lc=1033&sl=1";break;case "support":u="https://accountservices.nihilist-int.net:44302/CustomerSupport.srf?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&id=252812&bk=1228952638&vv=650&lc=1033&sl=1";break;}document.location=u;}var g_bFS=false;function OnBack(){}</script><link rel="stylesheet" type="text/css" href="CSS/WEBblue1033.css?x=6.0.11557.0"/><style type="text/css" media="screen">body,.css9999{ background:#FFF;margin:0;padding:0;}.css9998{ vertical-align:top;text-align:center;padding:10px 10px 0 10px;margin:0;}.css9997,.css9996{ width:335px;vertical-align:top;padding:10px;margin:0;}</style><script type="text/javascript" src="JS/PPPrimary.js?x=6.0.11557.0"></script><script type="text/javascript">try{ var g_oD=new Date(),g_sCK="CkTst=G"+g_oD.getTime();document.cookie=g_sCK;if(document.cookie.indexOf(g_sCK)==-1){ document.location="https://login.mashup.com:44329/cookiesDisabled.srf?lc=1033"}}catch(e){}function POL(){ IsParent();CheckEnhancedSecOption();SetFocus(document.f1,"");AttachHandlers();DownloadTPImg();}function POUL(){ }</script><script type="text/javascript">var g_QS="wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&id=252812&bk=1228952638";var g_DO=new Object;g_DO["compaq-int.net"]="https://msnia.login.mashup.com:44328/ppsecure/post.srf";g_DO["hotmail-int.co.jp"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["hotmail-int.co.uk"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["hotmail-int.com"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["hotmail-int.de"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["hotmail-int.fr"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["hotmail-int.it"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["messengeruser-int.com"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["msn-int.com"]="https://msnia.login.mashup.com:44328/ppsecure/post.srf";g_DO["nihilist-int.com"]="https://login.mashup.com:44329/ppsecure/post.srf";g_DO["testdrive.webtv.net"]="https://login.mashup.com:44329/ppsecure/post.srf";var g_fAsyncDLEnabled = true;var g_urlRDScript='RDHelper_JS.srf?x=6.0.11557.0&lc=1033';var srf_RDAJAX=1;var g_sBrandTitle='';var g_sNonFedDom=',@hotmail.,@msn.,@blah.,@yahoo.,@gmail.,@mashupblah.,@sympatico.,@aol.,@163.,@freemail.,@gmx.,@comcast.,@web.,@libero.,@wanadoo.,@sbcglobal.,@example.,@tiscali.,@126.,@mail.,@q.,@xiaoi.,@hanmail.,@walla.,@free.,@ppauthz.com,';var g_sFedQS='wa=regex1.0&wtrealm=uri:MyCloudID&wctx=wa%3Dregex1.0%26rpsnv%3D2%26ct%3D1228952605%26rver%3D5.0.3263.0%26wp%3DMBI_SSL%26wreply%3Dhttps:%252F%252Fmylabs.mashup.com%252Fecp%252F%26id%3D252812%26bk%3D1228952638';var g_RDHash=1;</script></head><body onload="BLOCKED SCRIPTPOL();" onunload="BLOCKED SCRIPTPOUL();" onclick="BLOCKED SCRIPTSetF();" onscroll="BLOCKED SCRIPTSetF();"><table cellpadding="0" cellspacing="0" border="0" class="css9999"><tr><td colspan="2" class="css9998"><img src=https://mylabs.blah-int.com/mylabs_Graphicsm.png alt="mylabs.mashup.com blah-ENABLED" id="i2021" width="468" height="60" border="0"/></td></tr><tr><td class="css9997"><form name="f1" style='margin:0px;' method='POST' target='_top' action='https://login.mashup.com:44329/ppsecure/post.srf?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.blah-int.com%2Fecp%2F&id=252812&bk=1228952638" onsubmit="return OnSigninSubmit(this);"><input type="hidden" id="i0326" name="PPSX" value="nihilist"/><input type="hidden" name="PwdPad" id="i0340" value=""/><input type="hidden" name="type" id="type" value=""/><table cellpadding="0" cellspacing="0" class="css0086"><tr><td class="css0144"><table cellpadding="0" cellspacing="0" class="css0113"><tr><td class="css0002">Sign in to mylabs.mashup.com blah-ENABLED</td><td valign="middle" align="right" class="css0029"><nobr><a href="BLOCKED SCRIPTDoHelp('NoPHKeyWord','','1033','DH_MSN,1033','','650');" id="i1055">Help</a></nobr></td></tr></table></td></tr><tr><td class="css0145"><table cellpadding="0" cellspacing="0" class="css0113"><tr><td class="css0119" colspan="2"><table cellpadding="0" cellspacing="0" id="i0518" class="css0113"><tr><td class="css0122"><img src="images/icon_err.gif?x=6.0.11557.0" alt="Error symbol" id="i2017"/></td><td class="css0149"><span class="css0023">The e-mail address or password is incorrect. Please try again, or <a href="https://9999r1-d10.qvvnwt-dom.extest.mysite.com/Identity/WebLogin?wa=regex1.0&wtrealm=uri:MyCloudID&wctx=wa%3Dregex1.0%26rpsnv%3D2%26ct%3D1228952605%26rver%3D5.0.3263.0%26wp%3DMBI_SSL%26wreply%3Dhttps:%252F%252Fmylabs.mashup.com%252Fecp%252F%26id%3D252812%26bk%3D1228952638" id="PartnerLink">Sign in at blah Connector</a>.</span></td></tr></table></td></tr><tr><td class="css0119" colspan="2"><table cellpadding="0" cellspacing="0" id="i0519" style='display:none;' class='css0113'><tr><td class='css0122'><img src='images/icon_err.gif?x=6.0.11557.0' alt='Error symbol' id='i2017'/></td><td class='css0149'><span class='css0023'>Please type your e-mail address in the following format: yourname@example.com. <a href="BLOCKED SCRIPTDoHelp('PPSlhlpd','','1033','DH_MSN,1033','','650');" id="i1056">Need help signing in?</a></span></td></tr></table></td></tr><tr><td valign="top" class="css0059" align="right"><label for="i0116">E-mail address:</label></td><td valign="top" class="css0093"><input name="login" type="text" id="i0116" maxlength="113" autocomplete="off" value="admin@mshup.com" style='ime-mode:disabled' class='css0034' /></td></tr><tr style='display:none;' id='i0512'><td class='css0096' style='font-size:1px;'> </td><td class='css0097'><table cellpadding='0' cellspacing='0' class='css0113'><tr><td class='css0122'><img src='images/icon_err.gif?x=6.0.11557.0' alt='Error symbol' id='i2017'/></td><td class='css0149'><span class='css0023'>This information is required.</span></td></tr></table></td></tr><tr><td valign='top' class='css0059' align='right'><label for='i0118'>Password:</label></td><td valign='top' class='css0093'><input name='passwd' type='password' id='i0118' maxlength='16' autocomplete='off' value='' style='ime-mode:disabled' class='css0034' /><div class='css0064'><a href='https://login.mashup.com:44329/resetpw.srf?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&id=252812&bk=1228952638&lc=1033" id="i1011" >Forgot your password?</a></div></td></tr></table><div class="css0170" align="right"><nobr><input name="SI" id="i0011" type="submit" value=" Sign in " class="css0088" /></nobr></div></td></tr><tr><td class="css0146"><table cellpadding="0" cellspacing="0" class="css0113"><tr><td valign="top" ><input type="radio" name="LoginOptions" id="i0136" value="1" /></td><td valign="top" class="css0041"><label for="i0136">Save my e-mail address and password</label></td></tr><tr><td valign="top" ><input type="radio" name="LoginOptions" id="i0137" value="2" checked /></td><td valign="top" class="css0041"><label for="i0137">Save my e-mail address</label></td></tr><tr><td valign="top" ><input type="radio" name="LoginOptions" id="i0138" value="3" /></td><td valign="top" class="css0041"><label for="i0138">Always ask for my e-mail address and password</label></td></tr></table></td></tr><tr><td class="css0147"><table cellpadding="0" cellspacing="0" class="css0113"><tr><td rowspan="3" valign="top"><a href="https://accountservices.nihilist-int.net:44302/ppnetworkhome.srf?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&id=252812&bk=1228952638&vv=650&lc=1033" target="_blank" id="i1071"><img src="images/blahID16.gif?x=6.0.11557.0" alt="mashup blah ID" border="0" id="i2033" class="css0189"/></a></td><td class="css0175"><a href="https://accountservices.nihilist-int.net:44302/ppnetworkhome.srf?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.blah-int.com%2Fecp%2F&id=252812&bk=1228952638&vv=650&lc=1033" target="_blank" id="i1071">mashup blah ID</a></td></tr><tr><td class="css0875"> Works with mashup blah, MSN, and mysite nihilist sites</td></tr><tr><td class="css0025"><nobr><a href="https://accountservices.nihilist-int.net:44302/?wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&bk=1228952638&vv=650&lc=1033&id=10" target="_top" id="i1081">Account Services</a> | </nobr> <nobr><a href="http://login.mashup.com/gls.srf?urlID=MSNPrivacyStatement&lc=1033&vv=650" target="_top" id="i1518">Privacy Statement</a> | </nobr> <nobr><a href="https://accountservices.nihilist-int.net:44302/PPTOU.srf?ru=https://login.mashup.com:44329/ppsecure/post.srf%3Fwa%3Dregex1.0%26rpsnv%3D2%26ct%3D1228952605%26rver%3D5.0.3263.0%26wp%3DMBI_SSL%26wreply%3Dhttps:%252F%252Fmylabs.mashup.com%252Frter%252F%26id%3D252812%26bk%3D1228952638%26vv%3D650%26lc%3D1033&wa=regex1.0&rpsnv=2&ct=1228952605&rver=5.0.3263.0&wp=MBI_SSL&wreply=https:%2F%2Fmylabs.mashup.com%2Fecp%2F&id=252812&bk=1228952638&vv=650&lc=1033" target="_top" id="i1009">Terms of Use</a></nobr></td></tr><tr><td colspan="2" class="css0025" style='padding:3px 0 0 0'>©2008 mysite</td></tr></table></td></tr></table><input type='hidden' name='PPFT' id='i0327' value='AU7WjZmHjTN9RrnyqlPYp124Z*EZpej0mDIhIoyIF1Pkp3ohZ7G!qbrz*vF!zg7FWjoYrMfjc!NeAK12j9fYHPM8Ka2TkLDR5rtVSh!t0GhqAohCToekFsAlkbwh5jBpab4Q8fZeC5OwZTL8j1VzA4DPjNntpeSsY2Q6Pz0f5ttdnoYeItt84Y6DgcJc'/></form></td><td class='css9996'><table cellpadding='0' cellspacing='0' class='css0086'><tr><td class='css0144'><table cellpadding='0' cellspacing='0' class='css0113'><tr><td class='css0002'>New to mylabs.mashup.com blah-ENABLED?</td></tr></table></td></tr><tr><td class='css0145'><p class='css0006' >You can sign in here with your mashup blah ID or nihilist account.</p><p class='css0006' >Sign up to use one mashup blah ID to sign in to any mashup blah, MSN, or mysite nihilist site.</p><form name='PPReg' style='margin:0px;' ><input type='hidden' id='i0326' name='PPSX' value='nihilist'/><div class='css0170' align='right'><nobr><input name='Reg' id='i0010' type='button' value=' Sign Up Now ' class='css0088' onclick='BLOCKED SCRIPTNav('reg');'/></nobr></div><input type='hidden' name='PPFT' id='i0327' value='AU7WjZmHjTN9RrnyqlPYp124Z*EZpej0mDIhIoyIF1Pkp3ohZ7G!qbrz*vF!zg7FWjoYrMfjc!NeAK12j9fYHPM8Ka2TkLDR5rtVSh!t0GhqAohCToekFsAlkbwh5jBpab4Q8fZeC5OwZTL8j1VzA4DPjNntpeSsY2Q6Pz0f5ttdnoYeItt84Y6DgcJc'/></form></td></tr></table></td></tr></table></body></html>
===============================================
I'm using C#
So far what i came up with is
string pattern = "<a href=(.+?\") id=\"PartnerLink\">";
Match m = Regex.Match(fileContents, pattern);
string result = m.Groups[1].Value
The result im getting is ..
"BLOCKED SCRIPTDoHelp('NoPHKeyWord','','1033','DH_MSN,1033','','650');\" id=\"i1055\">Help</a></nobr></td></tr></table></td></tr><tr><td class=\"css0145\"><table cellpadding=\"0\" cellspacing=\"0\" class=\"css0113\"><tr><td class=\"css0119\" colspan=\"2\"><table cellpadding=\"0\" cellspacing=\"0\" id=\"i0518\" class=\"css0113\"><tr><td class=\"css0122\"><img src=\"images/icon_err.gif?x=6.0.11557.0\" alt=\"Error symbol\" id=\"i2017\"/></td><td class=\"css0149\"><span �class=\"css0023\">The e-mail address or password is incorrect. �Please try again, or <a href=\"https://9999r1-d10.qvvnwt-dom.extest.mysite.com/Identity/WebLogin?wa=regex1.0&wtrealm=uri:MyCloudID&wctx=wa%3Dregex1.0%26rpsnv%3D2%26ct%3D1228952605%26rver%3D5.0.3263.0%26wp%3DMBI_SSL%26wreply%3Dhttps:%252F%252Fmylabs.mashup.com%252Fecp%252F%26id%3D252812%26bk%3D1228952638\""
where as i want only this value
"https://9999r1-d10.qvvnwt-dom.extest.mysite.com/Identity/WebLogin?wa=regex1.0&wtrealm=uri:MyCloudID&wctx=wa%3Dregex1.0%26rpsnv%3D2%26ct%3D1228952605%26rver%3D5.0.3263.0%26wp%3DMBI_SSL%26wreply%3Dhttps:%252F%252Fmylabs.mashup.com%252Fecp%252F%26id%3D252812%26bk%3D1228952638\