/ Published in: C#

In case you find yourself parsing a string with unrecognizable ASCII character codes, use the regex below to replace them. The pattern matches only the valid keyboard symbols.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string st = "45857875-08-545-K TESTDOCS INC 2008010320080103184514184516184516 0 "; st = Regex.Replace(st, @"[^\x20-\x7E]", "");
Comments
