Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string GetStoryTags()
- {
- List<string> sects = new List<string>();
- sects.Add("subSubSection text");
- sects.Add("subSection text");
- sects.Add("section text");
- string tags = string.Join(",", sects.ToArray());
- Regex r = new Regex("[^a-zA-Z0-9|\\x20|\\-|,]");
- tags = r.Replace(tags, "");
- Regex r2 = new Regex("\\x20+");
- tags = r2.Replace(tags, "-");
- return tags.ToLower();
- }
Add Comment
Please, Sign In to add comment