解决方案 »
- windows media services SDK 创建 HTM和ASX
- 使用sqldmo备份数据库时出现无法连上数据库
- 如何用vs2005开发C#的B/S项目
- 报错!请进来看看!
- X509Certificate2UI这个C#自带的恶控件如何才能居中显示?
- LISTVIEW中显示照片
- 关于登录窗口身份验证的问题
- 谁有医务室管理系统试用版本,给我提供个界面之类也成啊,公司要我开发一个,我想找个demo啊,谢谢帮忙啊
- 实现快速操作XML的库:EasyXml***开源下载!
- 在c#中用什么函数取得一个字符串的左边几位?
- 我的ListBox是在一个模式窗体中 数据显示不全
- 两个ComboBox绑定同一数据源,改变1的选项2也跟着变了!
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">//得到<head> d4d285dd-2447-11d7-8bf6-00b0d03daa06
<meta这个正则写起来多容易,然后你再操作一下得到的字符串,我想做这些一共也就用1分钟吧?何必非要单单用正则这个东西来解决问题呢?太麻烦了
try:
(([\da-eA-E])+)-\1-\1-\1-\1没有经过测试,可能错了
取分组1Match m = Regex.Match(html,@"<head>\s*([a-f0-9\-]+)");
if(M.Success)
{
m.Groups[1].Value;//就是你要的
}
(?i)<head>\s*([a-f0-9\-]+)/<head>\s*([a-f0-9\-]+)/iMatch m = Regex.Match(html,@"(?i)<head>\s*([a-f0-9\-]+)");
if(M.Success)
{
m.Groups[1].Value;//就是你要的
}
strText = "d4d285dd-2447-11d7-8bf6-00b0d03daa06";
Regex r = new Regex(@"^[a-z|\d]{8}\-[a-z|\d]{4}\-[a-z|\d]{4}\-[a-z|\d]{4}\-[a-z|\d]{12}$");
Match m = r.Match(strText);
if (m.Success)
{
MessageBox.Show("匹配");
}
<!--STATUS OK-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">innerHTML='<object title="知道彩蛋" onmousedown="EggCallBack('+eggtype+')" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="150" height="150"><param name="movie" value="/flash/egg.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="/flash/egg.swf" width="150" height="150" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed></object>';nslog(location.href,100,{cmd:"eggshow",eggid:eggtype});Fe.show("iknowguideegg");if(!newegg){setCookie("IKNEGG",cookie,new Date(0),"/")}}if(status=="1"){if(""=="1"){IknowEgg.done()}}Fe.Ajax.sio("/js/baidu.dragable.js",function(){try{baidu.dragable(G("iknowguideegg"),{handler:G("iknowguidehandle")})}catch(e){}})}function success(type){if(type>0){Fe.show("iknowguideegg");try{G("iknowguidecontent").innerHTML='<iframe id="IKNEGGframe" name="IKNEGGframe" style="width:420px;height:360px;border:0;" frameborder="no" scrolling="no"></iframe>';setTimeout(function(){G("IKNEGGframe").src="/egg/"+type+"done.html?t="+time.getTime()},150)}catch(e){}}}return{hide:hide,close:close,success:success,done:done,reg:reg,login:login,delay:delay,init:init}})();function EggCallBack(A){nslog(location.href,101,{cmd:"eggclick",eggid:A});if((""=="1")){Fe.hide("iknowguideegg");IknowEgg.done()}else{G("iknowguidecontent").innerHTML='<iframe src="/egg/'+A+'.html" width="420" height="360" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'}}IknowEgg.init();</script>最后找到了:D27CDB6E-AE6D-11cf-96B8-444553540000
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="