摘要:
public static string SubStringTitle(string html, int num) { //Regex regex = new Regex(@"<(.|\n)+?>", RegexOptions.IgnoreCase); //Regex regex = new Regex(@"<(\w+)>", RegexOptions.IgnoreCase); //string temp = regex.Replace(title, ""); //return temp.L... 阅读全文
posted @ 2011-11-23 13:37
.NET技术
阅读(322)
评论(0)
推荐(0)
摘要:
public static string GetSubStr(string str, int num) { byte[] buffer = System.Text.Encoding.Default.GetBytes(str); string ret = str; if (buffer.Length > num) { ret = System.Text.Encoding.Default.GetString(buffer, 0, num); }... 阅读全文
posted @ 2011-11-23 13:35
.NET技术
阅读(1022)
评论(0)
推荐(0)