[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: I need some help with a regexp please
From:       "codefire" <tony.bedford () gmail ! com>
Date:       2006-09-21 21:34:31
Message-ID: 1158874471.410073.71570 () i3g2000cwc ! googlegroups ! com
[Download RAW message or body]

Hi,

thanks for the advice guys.

Well took the kids swimming, watched some TV, read your hints and
within a few minutes had this:

r = re.compile(r'[^.\w]\w+\.?\w+@[^@\s]+\.\w+')

This works for me. That is if you have an invalid email such as
tony..bATblah.com it will reject it (note the double dots).

Anyway, now know a little more about regexps :)

Thanks again for the hints,

Tony

-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic