"Yosh" <yo***@nospam.com> wrote in news:u4vrznsFGHA.3912
@TK2MSFTNGP10.phx.gbl:
I have a string where I want to remove only those characters that are
letters or numbers. Does .NET provide an easy method to do this?
TIA!
Regex.Replace would work best for this... Function prototype is:
[C#]
public static string Replace (
string input,
string pattern,
string replacement
)
Example:
string newString;
newString = Regex.Replace(inputString, "[a-zA-Z0-9]", string.Empty);
-mdb