How to insert a backspace in a string in C#
.net, backspace, c#, cpu-word, string
Solution
The escape sequence for backspace is:
\b
https://social.msdn.microsoft.com/Forums/en-US/cf2e3220-dc8d-4de7-96d3-44dd93a52423/what-character-escape-sequences-are-available-in-c?forum=csharpgeneral
C# defines the following character escape sequences:
- \' - single quote, needed for character literals
- \" - double quote, needed for string literals
- \\ - backslash
- \0 – Null
- \a - Alert
- \b - Backspace
- \f - Form feed
- \n - New line
- \r - Carriage return
- \t - Horizontal tab
- \v - Vertical quote
- \u - Unicode escape sequence for character
- \U - Unicode escape sequence for surrogate pairs.
- \x - Unicode escape sequence similar to "\u" except with variable length.
Problem
Is it possible to insert a backspace at the end of a string in C#? If possible, then how do I insert a backspace in a string?