You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
422 B

  1. using Swift.web.Library;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.RegularExpressions;
  7. namespace Swift.API.Common.Helper
  8. {
  9. public static class Extensions
  10. {
  11. public static bool IsValidEmail(this string email)
  12. {
  13. return Regex.IsMatch(email ?? "", GetStatic.ReadWebConfig("regex"), RegexOptions.IgnoreCase);
  14. }
  15. }
  16. }