摘要: class Program { static void Main(string[] args) { string str = "1\"3"; var re1 = Regex.IsMatch(str, @"^\d\d\d\d\d\d$");//数字出现6次 var re2 = Regex.IsMatch(str, @"^\d{6}$");//使用量词 var re3 = Regex.IsMatch(str, @"^\d{6,10}$");//使用量词范围 ... 阅读全文
posted @ 2013-09-24 18:39 八神吻你 阅读(392) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { string str = "b"; var result1 = Regex.IsMatch(str, @"2");//字符串比较 var result2 = Regex.IsMatch(str, @"[0123456789]");//字符组穷举 var result3 = Regex.IsMatch(str, @"[0-9]");//范围 var re... 阅读全文
posted @ 2013-09-24 16:43 八神吻你 阅读(313) 评论(0) 推荐(0) 编辑
摘要: @model PartViewDemo.Models.HomeInfo@using PartViewDemo.Models;@{ ViewBag.Title = "Index";}@if (Model != null){ @Model.Name @Model.Content}@*通过Controller获取数据源*@@Html.Action("PartView", "Home")@*通过自己对model注入数据源*@@Html.Partial("Index2", new HomeInfo { Name = &quo 阅读全文
posted @ 2013-09-24 10:11 八神吻你 阅读(4968) 评论(0) 推荐(1) 编辑