You are not logged in Log in Join
You are here: Home » Members » andyv » This function will return true if the supplied email address is valid » tip_view

Log in
Name

Password

 

Created by ZopeOrgSite . Last modified 2002-11-20 06:58:16.

import re

def validEmail(self, address):
    "Returns true if the supplied email address is in a valid format"
    if re.search(r"^([\w_\.\-])+\@(([\w\-])+\.)+([\w]{2,4})+$", address):
        return 1
    else:
        return 0