I have some email address where I am trying to extract the domain from. I found a solution here but it is taking too long.
I am trying with the following approach:
First remove all the text before the @ sign.
gsub("@(.+)$", "\\1", emails)
Other - not used
qdapRegex::ex_between(emails, ".", ".")
Data:
emails <- c("ut317@hotmail.com", "drrro@iueywapp.com", "esdfdsfos@lasdfsdfsdstores.com",
"asfds@mobsdaff.com", "asfsdaf.gsdsfdsfd@hotmail.org", "asdfdsaf@sdffsddapp.com",
"wqrerq.mwqerweing@mwerqwie.com", "qwera@niweqrerw.tv", "qwereqr3rew7@hotmail.com",
"mqwerwewrk@moweqrewsfaslay.com")