# NOT RUN {
stri_join_list(stri_extract_all_words(c("Lorem ipsum dolor sit amet.",
"Get a life.")), sep=", ")
stri_join_list(stri_extract_all_words(c("Lorem ipsum dolor sit amet.",
"Get a life.")), sep=", ", collapse=". ")
stri_join_list(stri_extract_all_regex(c("R is OK.", "123 456", "Hey!"), "\\p{L}+"), " ")
stri_join_list(stri_extract_all_regex(c("R is OK.", "123 456", "Hey!"),
"\\p{L}+", omit_no_match=TRUE), " ", " -- ")
# }
Run the code above in your browser using DataLab