正则 取出html一部分,正则表达式来提取这个HTML文件的一部分

我有这个脚本的HTML页面:

flashembed("header_container",

{"src": "http://****.swf?__cv=3cfd4cc0ac1fad53803ff73629e93d00",

"version": [8,0],

"expressInstall": "http://****.swf?__cv=87411ea96ce42429f52b28683e7af400",

"width": 860,"height": 229,"wmode": "opaque","id": "flashHeader",

"onFail":

function(){onFailFlashembed();}},

{"cdn": "http://*****/","nosid": "1","lol": "89,04","isGuestUser": "",

"navPoint": "1","eventItemEnabled": "",

"supporturl":"indexInternal.es%3Faction%3Dsupport%26back%3DinternalStart",

"***ouser***": "817",

"serverdesc": "Italia 3","server_code": "1","lang": "it","coBrandImgUrl": "",

"coBrandHref": "","customSkinURL": "","messaging": "1"});

hackEmailInviteDialog();

jQuery('#emailInviteCloseButton').click(function()

{

.....

}我需要从这个页面中提取“ouser”字段。我试着用:

string pattern= @"""ouser"": "".*?,""serverdesc""";

string output = Regex.Replace(ConnectionAPI.responseFromServer, pattern, "");但在输出中有整个页面...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值