How to remove escape sequences from stream
is there an quick way to find(and remove) all escape sequences from a Stream/String?? shamim Hope bellow syntax will be help full for you string inputString = @"hello world]\ "; StringBuilder sb = new StringBuilder(); string[] parts = inputString.Split(new char[] { ' ', '\n', '\t', '\r', '\f', '\v','\\' }, StringSplitOptions.RemoveEmptyEntries); int size = parts.Length; for (int i = 0; i < size; i++) sb.AppendFormat("{0} ", parts[i]); The escape sequences that you are referring to are simply text based represntations of characters that are normally either unprintable (such as new lines or tabs