ExcludeCharacters method

Nov 16, 2008 at 7:40 AM
You could simplify the ExcludeCharacters method with a single Regex.Replace.

Regex.Replace(strText, "[^a-z]", string.Empty, RegexOptions.IgnoreCase);

For the namespaces you would change the pattern to @"[^a-z\.]"
Nov 19, 2008 at 9:30 AM
Thank you for your remark. I will change that in the next version.