一只单身猿


JinMo Ye
open_in_new

忘不掉的永远忘不掉

alarm2016-08-24 faceyejinmo

        private void Analysis(string text)
        {
            Regex regex = new Regex(analysis_reg_str);
            MatchCollection mc = regex.Matches(text);
            if (mc.Count <= 0)
                return;
            foreach(Match m in mc)
            {
                if (m.Groups[3].ToString() == "Dalian")         //判断访问城市IP是否为大连
                {
                    string temp = m.Groups[0].ToString();
                    if (CheckIsNew(temp))                       //是新访问
                    {
                        Alart(temp);                            //发送访问提醒邮件
                        SaveCurrentText(temp);                  //保存当前记录值至本地
                    }
                    else                                        //非新访问
                    {
                        continue;
                    }
                }
            }
        }

JJfly

2016-11-09 15:22

    这尼玛一看就知道是彪哥

    yejinmo yejinmo
    2016-11-12 23:06


发表评论