response = Get(URL);
response = Post(URL);
oldSuiteId = GetValue("oldProduct\\s=\\s'(?<val>\\d+)'\\s;", response);
credCode =
GetValue("<input\\sname=\"infoauth__auth_id\"\\stype=\"text\"[^>]+?value=\"(?<val>[^\"]+?)\"\\s+>", response);customName =
GetValue("<input\\sname=\"infoauth__auth_name\"\\stype=\"text\"[^>]+?value=\"(?<val>[^\"]+?)"\\s+>",response);
bskpProduct = GetValue("bspkProduct\\s=\\s\"(?<val>)\";", response); GetValue方法如下定义的:
private string GetValue(string pattern, string response)
{
Regex regex = new Regex(pattern, RegexOptions.ExplicitCapture);
Match match = regex.Match(response);
if (!match.Success)
{
return null;
}
return match.Result("${val}");
}
我就是看不懂上面那几句赋值语句后门的表达式是怎么组成的,要表达一个什么意思。
请高手不吝赐教
response = Post(URL);
oldSuiteId = GetValue("oldProduct\\s=\\s'(?<val>\\d+)'\\s;", response);
credCode =
GetValue("<input\\sname=\"infoauth__auth_id\"\\stype=\"text\"[^>]+?value=\"(?<val>[^\"]+?)\"\\s+>", response);customName =
GetValue("<input\\sname=\"infoauth__auth_name\"\\stype=\"text\"[^>]+?value=\"(?<val>[^\"]+?)"\\s+>",response);
bskpProduct = GetValue("bspkProduct\\s=\\s\"(?<val>)\";", response); GetValue方法如下定义的:
private string GetValue(string pattern, string response)
{
Regex regex = new Regex(pattern, RegexOptions.ExplicitCapture);
Match match = regex.Match(response);
if (!match.Success)
{
return null;
}
return match.Result("${val}");
}
我就是看不懂上面那几句赋值语句后门的表达式是怎么组成的,要表达一个什么意思。
请高手不吝赐教
解决方案 »
- C# + 小型数据库
- 大神求助啊,Jquery实现拖动
- 请问一个xml问题??
- 利用c#怎么操作图片啊
- VS2005中用c#做的程序运行出错
- 如何在程序中停止某数据库的使用?
- 各位朋友,有在网页上上传视频,音频,图象文件等和在网页上播放视频,音频,FLASH动画的源代码吗(最好C#的,VB也行)?
- socket编程,防火墙打开了就无法通信,怎么解决
- ■■■>>>>>>>>>>>>>>■>>>>>>>>>>>声 明<<<<<<<<<<■<<<<<<<<<<<<<<<<<■■■
- 不知道现在学习什么编程语言才好呢?大家有何看法?????
- vs2008 c#代码编辑的问题
- 如何实现 点击datagridview中查询到的数据,让数据对应到相应的textbox 中
在下不胜感激,定当另外开贴送分。