I am formatting numbers to string using the following format string \"# #.##\", at some point I need to turn back these number strings like (1 234 567) into something like 1234
Solution with extended methods:
public static class ExtendedMethods { public static string NbspToSpaces(this string text) { return text.Replace(Convert.ToChar(160), ' '); } }
And it can be used with this code:
value = value.NbspToSpaces();