Karatas, FERHAT
I would love to change the world, but they won't give me the source code!
Regular Expressions Usage
13.10.2008 19:51:23 - Filed under : C# | Asp.net
The source code shows how to use Regular Expressions in C#.
public static bool IsEmail(string strEmail)
string regex_Email = @"^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$";
Regex re = new Regex(regex_Email);
return re.IsMatch(strEmail) ? true : false;

Keywords : Regular Expression

with 0 comments

What do you think ?
Security Code 9483
Check S. Code
Home Page