摘要: string pattern = @"\[/(\w+)\]";string result = System.Text.RegularExpressions.Regex.Replace("owjfdsl聊天消息,表情[hanx]j1111lsjfs", pattern, "");result 就是转换后的字符串。另,附一个别处找来的,关键字正则替换的扩展方法:public static class StringManipulation{ public static string PregReplace(string input, str 阅读全文
posted @ 2012-09-04 15:16 lenya 阅读(327) 评论(0) 推荐(0) 编辑