public string Strip(string text){string s = Regex.Replace(text, @”<(.|\n)*?>”, string.Empty);s = s.Replace(" ", " ");s = Regex.Replace(s, @"\s+", " ");s = Regex.Replace(s, @"\n+", "\n");return s;}
Showing posts with label Regex. Show all posts
Showing posts with label Regex. Show all posts