I\'m trying to deal with text with R and here is my question.
From this source text
#Pray4Manchester# I hope that #ArianaGrande# will be better soon.
We can do
str_extract_all(text, "(?<=#)\\w*(?=#)")[[1]] #[1] "Pray4Manchester" "ArianaGrande"
text <- "#Pray4Manchester# I hope that #ArianaGrande# will be better soon."