The code makes a regular expression that represents all characters that are not in the range " " through "~" repeated any number of times. It uses the expression to create a Regex object and then uses its Replace method to remove those characters and returns the result.
Note that this method removes many useful Unicode characters such as £, Æ, and ♥, in addition to fonts such as Cyrillic and Kanji. It's mostly useful for standard English text.
Excellent...
Reply to this
Thanks, this was the only one code that resolve my problem.
Reply to this