Fork me on GitHub
摘要: 微博内容长度的计算方法(不一定完全无误,仅提供一个思路): public static int GetWeiboContentLength(string weiboContent) { var max = 140; var surl = 11; var urlCount = 0; RegexOptions ops = RegexOptions.Compiled; Regex regex = new Regex(@"http://[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+([-A-Z0-9a-z_\$\.\+\!\*\(\)\/,:;@&=\?\... 阅读全文
posted @ 2012-07-09 23:08 张善友 阅读(1120) 评论(0) 推荐(0) 编辑