I have a data as follows:
emails
my email id: xxx.x@gmail.com
email to: bb_b@yahool.com
mailto: hj-hk@grk.co
you can send email to ghhd@test.co
gggh@gh.tom
I only want to extract the word containing "@" as follows:
email
xxxx@gmail.com
bbb@yahool.com
hjhk@grk.co
ghhd@test.co
gggh@gh.tom
Till now I was doing it manually for each row using
substring(data[1,1], 14)
But clearly this is the worst thing one can do when data size is as large as 900k. Any help will be highly appreciated. TIA.