i want to remove all control characters from 0x00 to 0x1F.
I thought i would do it like that:
string x = "\x1BTEST";
for (string stringHex = "00"; !stringHex.Equals("1F"); stringHex = (int.Parse(stringHex, System.Globalization.NumberStyles.HexNumber) + 1).ToString("X2"))
{
x = x.Replace("\\x" + stringHex, "");
}
The double escape blows it. Ok. But how to do it?