R/rx.R
emoji_extract.Rd
vectorised over string
string
emoji_extract(string) emoji_extract_all(string, simplify = FALSE)
Input vector.
see stringr::str_extract_all()
stringr::str_extract_all()
A character vector
stringr::str_extract() and stringr::str_extract_all()
stringr::str_extract()
chars <- c(letters[1:4], emoji_name[1:6]) set.seed(1234) strings <- lapply(1:10, function(x) paste(sample(chars, x), collapse = "")) extracts <- emoji_extract(strings) all_extracts <- emoji_extract_all(strings)