I\'m trying to get the ending for email addresses (ie .net, .com, .edu, etc.) but the portion after the @ can have multiple periods.
library(stringi) stri
So this is a negate lookahead regex that should give you the last .word of that line.
regex
.word
\.(?!.*\.)\w+