110,536
社区成员
发帖
与我相关
我的任务
分享
string tempStr = File.ReadAllText(@"C:\Documents and Settings\Administrator\桌面\Test.txt", Encoding.GetEncoding("GB2312"));//读取txt
string strVerify = Regex.Match(tempStr, @"(?is)<input[^>]*?name=(['""]?)verify\1[^>]*?value=(['""]?)([^'""]*?)\2[^>]*?>").Groups[3].Value;
//d3e6cf36
string sReturn = @"<input type=""hidden"" name=""verify"" value=""d3e6cf36"" />";
string strVerify = Regex.Match(sReturn, @"(?is)<input[^>]*?name=(['""]?)verify\1[^>]*?value=(['""]?)([^'""]*?)\2[^>]*?>").Groups[3].Value;
//d3e6cf36