Extract all email address(es) with a specific domain (e.g., msu.edu, gmail.com, hotmail.com, etc.)
See also
Other "text cleaning":
clean.cntrl()
,
convert.spaces()
Author
Emilio Xavier Esposito emilio.esposito@gmail.com (https://github.com/emilioxavier)
Examples
extract.emails(emails.string="emilio.dork@gmail.com 2.that.dork@egr.msu.edu
dork@egr.msu.edu 517565656325@162.123 thatDork@msu.edu", domains="msu.edu")
#> [[1]]
#> [1] "2.that.dork@egr.msu.edu" "dork@egr.msu.edu"
#> [3] "thatdork@msu.edu"
#>
# [1] "2.that.dork@egr.msu.edu" "thatdork@msu.edu"