I would like to do regex that return boolean value if it matches. I want to extract characters after @. It could be a lot of character. For example I want to check if email using banana or apple
domain.
sample:
df.head()
EMAIL
data1@gmail.com
data2@yahoo.com
data3@banana.com
data4@apple.com
apple@gmail.com
I tried this
df["sus"] = df["email"].str.match(r'([^@]*banana|apple)')
but it also catch before @
result I got
SUS
False
False
True
True
True
result I want
SUS
False
False
True
True
False