Advertisement
kyrathasoft

is email

May 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. public static bool IsEmail(string sEmail) {
  2.     if (sEmail != null) {
  3.         return Regex.IsMatch(sEmail, MatchEmailPattern);
  4.     }
  5.     else {
  6.         //if sEmail is null, we don't test at all
  7.         return false;
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement