ÕýÔò±í´ïʽ»ñÈ¡HTML±ê¼ÇÖеÄÄÚÈÝ£¨C#£©
ÕýÔò±í´ïʽ»ñÈ¡HTML±ê¼ÇÖеÄÄÚÈÝ£¨C#£©
//=====================Begin1========================
//ÊÔÑé×Ö·û´®
string strTmp = string.Empty;
//ÕýÔò±í´ïʽ
string tmpStr = string.Empty;
//È¡³öÖ¸¶¨HTML±ê¼ÇÖеÄÆ¥ÅäÏîµÄÖµRegexOptions.IgnoreCaseºöÂÔ´óСд£¬RegexOptions.MultilineºöÂÔ¶àÐÐÏÔʾ£¬
//tmpStr = "<title>([^<]*)</title>" //»ñÈ¡<title>Ö®¼äÄÚÈÝ
strTmp = @"<add key='ConnectionString' value='server=localhost;database=Êý¾Ý¿âÃû;uid=sa;pwd=;pooling=true'/>";
//»ñÈ¡“database=”Óë“;”ºÅÖ®¼äµÄ×Ö·û´®£ºdatabase=(.*);
tmpStr = "database=([^;]*);";
Match TitleMatch = Regex.Match(strTmp, tmpStr ,RegexOptions.IgnoreCase | RegexOptions.Multiline );
//ÈçÏÂÀý×Ó×÷Óï·¨²Î¿¼ÓûñÈ¡sizeµÄÖµ£¬Êµ¼ÊÓ¦ÓÿÉÄܲ»»áÈç´Ë¸´ÔÓ
strTmp = "><font color='red' size=6>WebForm3</font><" ;
tmpStr = @"<(w+s+w+[=]+[']+w+[']+s+[size=]+d)>";
Match TitleMatch = Regex.Match(strTmp ,tmpStr , RegexOptions.IgnoreCase | RegexOpt
Ïà¹ØÎĵµ£º
Ò»¡¢±í¸ñÖе¥Ôª¸ñÖ®¼ä·Ö¸ôÏßµÄÒþ²Ø·½·¨
µÚ
Ò»
ÐÐ
µÚ
¶þ
ÐÐ
µÚ
Èý
ÐÐ
Õâ¸ö±í¸ñÈ¥µôÁ˵¥Ôª¸ñÖ®¼äµÄ×ÝÏò·Ö¸ôÏß
µÚ
µÚ
µÚ
Ò»
¶þ
Èý
ÁÐ
ÁÐ
ÁÐ
Õâ¸ö±í¸ñÈ¥µôÁ˵¥Ôª¸ñÖ®¼äµÄºáÏò·Ö¸ôÏß
ºá
Ïß
Êú
Ïß
¶¼
û
ÁË
Õâ¸ö±í¸ñÈ¥µôÁ˵¥Ôª¸ñÖ®¼äµÄ×ÝÏò·Ö¸ôÏߺͺáÏò·Ö¸ôÏß
ÆäʵÉÏÃæµÄÈý¸ö±í¸ñ ......
Õâ¸öÔÚ×öÍøÒ³Öг£ÒªÓõ½£¬ÓÐЩͨÓõÄÄÚÈݿɼ¯ÖзÅÔÚÒ»¸öÒ³ÃæÎļþÖУ¬ÆäËüÒªÓõ½ÕâЩÄÚÈݵÄÒ³ÃæÖ»ÐèÒª°üº¬£¨ÒýÓã©Õâ¸öͨÓÃÎļþ¼´¿É¡£ÕâÑù±ãÓÚά»¤£¬Èç¹ûÓкܶàÍøÒ³£¬µ±Í¨ÓÃÄÚÈÝÐèÒªÐÞ¸Äʱ£¬Ö»¸ÄÒ»¸öÎļþ¾Í¿ÉÒÔÁË£¬²»ÐèҪÿ¸öÎļþµ¥¶ÀÐ޸ġ£
×îµäÐ͵ÄÓ¦ÓñÈÈçÒ³½ÅµÄ°æȨÐÅÏ¢µÈÄÚÈÝ¿ÉÒÔ·ÅÔÚÒ»¸ö½Ð×öfooter.htmlÎļþÀ È» ......
ӦһλÍøÓѵÄÐèÇ󣬲¢ÐÞÕýÁËMVPÀîºé¸ù".NETƽ̨ÏÂWEBÓ¦ÓóÌÐòµÄ²¿Êð(°²×°Êý¾Ý¿âºÍ×Ô¶¯ÅäÖÃ)"ÖеÄosqlÓ÷¨´íÎó£¬ÒѲâÊÔͨ¹ý¡£
Ò»).´´½¨²¿ÊðÏîÄ¿
1. ÔÚ“Îļþ”²Ëµ¥ÉÏÖ¸Ïò“Ìí¼ÓÏîÄ¿”£¬È»ºóÑ¡Ôñ“н¨ÏîÄ¿”¡£
2. ÔÚ“Ìí¼ÓÐÂÏîÄ¿”¶Ô»°¿òÖУ¬Ñ¡Ôñ“ÏîÄ¿ÀàÐÍ”´°¸ñÖ ......
ÕâÒ»ÕÂÎÒÃǽéÉܱí¸ñµÄʹÓ÷½·¨¡£
Ç°Ãæѧ¹ýµÄ±êÇ©£¬Ö»Äܽ«HTMLÄÚÈÝ°´ÕÕ“Á÷ʽ”µÄ·½Ê½½øÐв¼¾ÖÅŰ棬ËùνÁ÷ʽ£¬¼´ËùÓеÄHTMLÔªËØ£¨±êÇ©ÔªËغÍÎı¾ÔªËØ£©¶¼ÊÇÒÀÕÕ“´Ó×óµ½ÓÒ£¬´ÓÉϵ½Ï”µÄ·½Ê½À´ÅÅÁеģ¬¼´±ã²¿·Ö±êÇ©µÄalignÊôÐÔ¿ÉÒԸıäÔªËصĶÔÆ뷽ʽ£¬µ«²»ÄܸıäÔªËØÕûÌåÁ÷ʽ²¼¾ÖµÄÌص㡣
±¾ÕÂѧϰµ ......
Frame¿ò¼ÜÏÖÒѲ»Ôõô³£Ó㬸ø¸öÀý×ÓÒÔչʾÆäÊôÐÔ¡£
frameÀý×Ó£º
<frameset cols="50%,*">
<noframes>
<body>
Sorry,your explorer doesn't support the frame...
</body>
</noframes>
<frame name="left" src="left.html">
<frameset rows="*,30%">
<frame name=" ......