Hello,
I don't have much experience with RegEx so I am using many chained String.Replace() calls to remove unwanted characters -- is there a RegEx I can write to streamline this?
string messyText = GetText();
messyText.Trim().ToUpper().Replace(",", "").Replace(":", "").Replace(".", "").Replace(";", "").Replace("/", "").Replace("\\", "").Replace("\n", "").Replace("\t", "").Replace("\r", "").Replace(Environment.NewLine, "").Replace(" ", "")
Thanks