Return to Snippet

Revision: 19587
at October 26, 2009 13:01 by arangil


Initial Code
string st = 
"45857875-08-545-K TESTDOCS INC 2008010320080103184514184516184516 0 "; 

st = Regex.Replace(st, @"[^\x20-\x7E]", "");

Initial URL


Initial Description
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.

Initial Title
Parsing with regex

Initial Tags
regex

Initial Language
C#