I am trying to use the stringr library to extract emails from a big, messy file.
str_match doesn't allow perl=TRUE, and I can't figure out the escape characters to get it to work.
Can someone recommend a relatively robust regex that would work in the context below?
c("larry@gmail.com", "larry-sally@sally.com", "larry@sally.larry.com")->emails
"SomeRegex"->regex
str_match(emails, regex)