The Tech Pursuit
The Dev Shelf
Pages
Home
Interview Questions
About Me
March 7, 2011
Remove hidden and special character from string
Use System.Text.RegularExpressions namespace
String InputStr = "90000277272$##()(*(";
String OutputStr = String.Empty;
Regex reg = new Regex("[^A-Za-z0-9]");
OutputStr = reg.Replace(InputStr, String.Empty);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment