OK, I not all that great when it comes in making REG EXP strings to match, but I have done it before, just basic of it and it seems when I try doing it for this project that I working on, it just don't work. I am trying to get the name and value of all of the HTML Form Input Tags in this HTML code:
HTTP/1.1 200 OK
Connection: close
Date: Wed, 10 May 2006 04:12:22 GMT
Server: Microsoft-IIS/6.0
PPServer: PPV: 30 H: BAYPPLOGN2B03 V: 0
Content-Type: text/html; charset=iso-8859-1
Expires: Wed, 10 May 2006 04:11:22 GMT
Cache-Control: no-cache
Pragma: no-cache
P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
Set-Cookie: PPStateXfer=1; domain=login.live.com;path=/;version=1
Set-Cookie: MSPRequ=lt=1147234342&co=1&id=N; path=/;version=1
Content-Length: 8025
<!-- ServerInfo: BAYPPLOGN2B03 2006.03.30.19.41.26 Live1 Unknown LocVer:0 -->
<!-- PreprocessInfo: ppbuild:PASSBLD08, Mon 04:03:2006-18:38:31.87 -- Version: 4,000,5630,0 -->
<html dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><base href="https://login.live.com/pp400/"/><noscript><meta http-equiv="Refresh" content="0; URL=https://login.live.com/jsDisabled.srf?lc=1033"/></noscript><title>Sign In</title><meta name="PageID" content="i5030"/><meta name="SiteID" content="10"/><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.passport.net/reg.srf?PPStateXfer=1&bk=1147234342&cru=https://login.live.com/login.srf%3fPPStateXfer%3d1&lc=1033&sl=1";break;case "support":u="https://accountservices.passport.net/CustomerSupport.srf?PPStateXfer=1&vv=400&lc=1033&sl=1";break;}document.location=u;}var g_bFS=false;function OnBack(){}</script><link rel="stylesheet" type="text/css" href="CSS/WEBgray1033.css?x=4.0.5610.0"/><style type="text/css" media="screen">body,.css9999,.css9996{ margin:0;padding:0;width:100%;height:100%;}.css9997{ width:335;vertical-align:top;background:#fff;padding:20px;margin:0;}.css9996{ background:#fff;}.css9995{ width:100%;height:335px;background:#fff;}</style><script type="text/javascript" src="JS/PPPrimary.js?x=4.0.5610.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.live.com/cookiesDisabled.srf?lc=1033"}}catch(e){}function POL(){ IsParent();SetFocus(document.f1,"");}function POUL(){ }</script><script type="text/javascript">var g_QS="PPStateXfer=1&bk=1147234342";var g_DO=new Object;g_DO["compaq.net"]="https://msnia.login.live.com/ppsecure/post.srf";g_DO["hotmail.co.jp"]="https://login.live.com/ppsecure/post.srf";g_DO["hotmail.co.uk"]="https://login.live.com/ppsecure/post.srf";g_DO["hotmail.com"]="https://login.live.com/ppsecure/post.srf";g_DO["hotmail.de"]="https://login.live.com/ppsecure/post.srf";g_DO["hotmail.fr"]="https://login.live.com/ppsecure/post.srf";g_DO["hotmail.it"]="https://login.live.com/ppsecure/post.srf";g_DO["messengeruser.com"]="https://login.live.com/ppsecure/post.srf";g_DO["msn.com"]="https://msnia.login.live.com/ppsecure/post.srf";g_DO["passport.com"]="https://login.live.com/ppsecure/post.srf";g_DO["webtv.net"]="https://login.live.com/ppsecure/post.srf";</script></head><body onload="javascript:POL();" onunload="javascript:POUL();" onclick="javascript:SetF();" onscroll="javascript:SetF();"><table cellpadding="0" cellspacing="0" border="0" class="css9999"><tr><td colspan="2"><iframe src="cache/Cobranding.srf?cbloc=cbh&cbpage=login&lc=1033&x=4.0.5610.0" width="100%" height="69" frameborder="0" scrolling="no" align="top" marginwidth="0" marginheight="0" name="i6000"></iframe></td></tr><tr><td class="css9997"><form name="f1" style="margin:0px;" method="POST" target="_top" action="https://login.live.com/ppsecure/post.srf?PPStateXfer=1&bk=1147234342" onsubmit="return OnSigninSubmit(this);"><input type="hidden" id="i0326" name="PPSX" value="Pa"/><input type="hidden" name="PwdPad" id="i0340" 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 Passport Network website</td><td valign="middle" align="right" class="css0029"><nobr><a href="javascript:DoHelp('NoPHKeyWord','','1033','DH_PP,1033','','400');" 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="i0519" style="display:none;" class="css0113"><tr><td class="css0122"><img src="images/icon_err.gif?x=4.0.5610.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="javascript:DoHelp('PPSlhlpd','','1033','DH_PP,1033','','400');" 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="" 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=4.0.5610.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.live.com/resetpw.srf?PPStateXfer=1&bk=1147234342&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><div style="padding:3px 0 0 0;font-size:0;"> </div><p class="css0006" style="padding-left:5px;"><a href="http://login.live.com/login.srf?PPStateXfer=1&bk=15142671" id='i1663'>Sign in using standard security</a></p></td></tr><tr><td class="css0147"><table cellpadding="0" cellspacing="0" class="css0113"><tr><td rowspan="3" valign="top"><a href="https://accountservices.passport.net/ppnetworkhome.srf?PPStateXfer=1&vv=400&lc=1033" target="_blank" id="i1071"><img src="images/LiveID16.gif?x=4.0.5610.0" alt="Windows Live ID" border="0" id="i2033" class="css0189"/></a></td><td class="css0175"><a href="https://accountservices.passport.net/ppnetworkhome.srf?PPStateXfer=1&vv=400&lc=1033" target="_blank" id="i1071">Windows Live ID</a></td></tr><tr><td class="css0875"> Works with Windows Live, MSN, and Microsoft Passport sites</td></tr><tr><td class="css0025"><nobr><a href="https://accountservices.passport.net/?PPStateXfer=1&vv=400&lc=1033&id=10" target="_top" id="i1081">Account Services</a></nobr> </td></tr></table></td></tr></table><input type="hidden" name="PPFT" id="i0327" value="B07nUi4!8ZtIuVr4x4CmeKWV604DjBMetn0HGx91*SYIRorMOGO2Wd8ilNpEviHgiiUNpV*SCVrMN!AqiZMkvij381Wl"/></form><table cellpadding="0" cellspacing="0" border="0" width="335" style="font-size:0;"><tr><td> </td></tr></table></td><td valign="top" class="css9995"><iframe src="cache/Cobranding.srf?cbloc=cbr&cbtype=signin&cbpage=login&lc=1033&x=4.0.5610.0" width="100%" height="335" frameborder="0" scrolling="no" align="top" marginwidth="0" marginheight="0" name="i6002"></iframe></td></tr><tr><td valign="top" colspan="2" class="css9996"><iframe src="cache/Cobranding.srf?cbloc=cbf&cbpage=login&lc=1033&x=4.0.5610.0" width="100%" height="42" frameborder="0" scrolling="no" align="bottom" marginwidth="0" marginheight="0" name="i6003"></iframe></td></tr></table></body></html>
Can anybody help me with this one?
ViPeR