摘要: 先推荐一个在线测试/学习正则表达式的网址,http://www.gskinner.com/RegExr/1、一个正则表达式,只含有汉字、数字、字母、下划线不能以下划线开头和结尾:^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5]+$ 其中:^ 与字符串开始的地方匹配(?!_) 不能以_开头(?!.*?_$) 不能以_结尾[a-zA-Z0-9_\u4e00-\u9fa5]+ 至少一个汉字、数字、字母、下划线$ 与字符串结束的地方匹配放在程序里前面加@,否则需要\\进行转义 @"^(?!_)(?!.*?_$)[a-zA-Z0-9_\u4e00-\u9fa5] 阅读全文
posted @ 2011-02-22 15:44 Mamboer 阅读(13490) 评论(0) 推荐(1)
摘要: 参考这里:How to Bin Deploy SQL Compact Edition 4.0 and Razor web projectsWith the release of VS2010 SP1 Beta1, Web Matrix, and Razor QFE, we can build web projects containing SQL Compact Edition 4.0 sdf file and ASP.NET Web Pages with Razor syntax. However, this might be a problem when you are ready to 阅读全文
posted @ 2011-02-22 13:46 Mamboer 阅读(515) 评论(0) 推荐(0)