ExcludeCharacters method

Nov 16, 2008 at 6: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\.]"
Coordinator
Nov 19, 2008 at 8:30 AM
Thank you for your remark. I will change that in the next version.