While matching an email address, after I match something like yasar@webmail, I want to capture one or more of (\\.\\w+)(what I am doing is a little
yasar@webmail
(\\.\\w+)
This is what you are looking for:
>>> import re >>> s="yasar@webmail.something.edu.tr" >>> r=re.compile("\.\w+") >>> m=r.findall(s) >>> m ['.something', '.edu', '.tr']