import re

text = "My departmental email id is rupesh@cse.iitm.ac.in. This is what I use for all the official purposes. The institute also provides an id rupesh@iitm.ac.in. During PhD, I used to have a personal email id rupesh0something@gmail.com, which is still in use. When gmail was not around, id rupesh_something@usa.net was the one I used. I also own a twitter handle @rupeshsomething, which I hardly use. That's it from my side for now. See you in class @11."

regex3 = r'\w+@\w+'
regex2 = r'\w+@[\w\.]+'
regex = r'\w+@[\w\.]+\w'
emails = re.findall(regex, text.lower())
print(emails)
