正则 获取上个页面的参数值

来源:互联网 发布:perl @数组 shift 编辑:程序博客网 时间:2024/04/27 18:19

           System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex("eventid=([^&]+)");            System.Text.RegularExpressions.Match match = reg.Match(HttpContext.Current.Request.UrlReferrer.Query);            string a = match.Groups[1].Value;


0 0