# NOT RUN {
stri_join_list(stri_extract_all_words(c("Lorem ipsum dolor sit amet.",
"You're gonna get away with this.")), sep=", ")
stri_join_list(stri_extract_all_words(c("Lorem ipsum dolor sit amet.",
"You're gonna get away with this.")), 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