有用函式

檢查是否為有效email

def is_email_address_valid(email):
  """Validate email address using regular expression."""
  if not re.match("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$", email):
      return False
  return True

results matching ""

    No results matching ""