We should not read chunks that are behind a #, but for now it does. The closest I got was this:
str_extract_all(b, "\\#{0,4} *[a-zA-Z0-9\\._]+ *\\<\\- *[a-zA-Z0-9\\._]+?\\(\\{.+?\\}\\)", simplify = F) %>% .[[1]]
But it reads the ## from the line above and is therefore useless. I think the only way to resolve this is to use another method to import the files than read_file.... cause read_file gets rid of newspaces, which makes it impossible to figure out if a hashtag is at the beginning of the sentence or not.
We should not read chunks that are behind a
#
, but for now it does. The closest I got was this:str_extract_all(b, "\\#{0,4} *[a-zA-Z0-9\\._]+ *\\<\\- *[a-zA-Z0-9\\._]+?\\(\\{.+?\\}\\)", simplify = F) %>% .[[1]]
But it reads the ## from the line above and is therefore useless. I think the only way to resolve this is to use another method to import the files than
read_file
.... causeread_file
gets rid of newspaces, which makes it impossible to figure out if a hashtag is at the beginning of the sentence or not.