Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import re
- match = re.search(r'([\w.-]+)@([\w.-]+)', r'tomas@example.sk' )
- print match.group()
- print match.group(1)
- print match.group(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement