18.224.30.118 |    

Navigation

Google Advertisement

Diese Funktion prüft das Adressformat einer Email Adresse. Diese Funktion gibt True oder False zurück.

check_mailaddr
  1. def check_mailaddr( email ):
  2.     """check_mailaddr --- Check the syntax of an email address format
  3.     and return False if the syntax is bad and True if the syntax is good.
  4.  
  5.     (bool) bool check_mailaddr( (string) email )"""
  6.     from re import compile, match
  7.     regexp = compile( '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$' )
  8.     if regexp.match( email ) != None:
  9.         return True
  10.     else:
  11.         return False
Parsed in 0.001 seconds at 314.97 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 4 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)