随笔分类 -  正则表达式

摘要:1、asp.net 常量有字符无法识别的转义可以试着在前面加个@2、利用正则表达式中分组操作字符数据。如实现电话1354635****效果Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->string str = "13532536463"; string temp = Regex.Replace(str, @"[\d]{4}$", "****", RegexOptions.Right 阅读全文
posted @ 2011-01-10 23:18 solomon_Blog 阅读(389) 评论(0) 推荐(0)