Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import re
- address = re.compile('[\w\d.+-]+@([\w\d.]+\.)+(com|org|edu)',
- re.UNICODE)
- candidates = [
- ]
- for candidate in candidates:
- match = address.search(candidate)
- print '%-30s %s' % (candidate, 'Matches' if match else 'No match')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement