This seems to give reasonable results. import re pattern = r'[EMAIL PROTECTED],4}\b' pattobj = re.compile(pattern) ps = pattobj.search if ps(stringtocheck):
But as lots of people have already told you on this list. This should only be used to give a warning and not prevent the use of that particular address. DarkCowherd -- http://mail.python.org/mailman/listinfo/python-list