Code Snippet posted by:
Ranjeet_8 | Posted on: 10/1/2012 | Category:
ASP.NET Codes | Views: 340 | Status:
[Member] |
Points: 40
|
Alert Moderator
public string ReturnEmailID(string YourEmailID)
{
return Regex.Replace(YourEmailID, "[^A-Za-z0-9._@-]", "");
}