Trying to split and include. So far, I can do the look behind ok.
string_txt <- "apple eat bear"
strsplit(string_txt, "(?<=eat)", perl = TRUE)
[[1]]
[1] "apple eat" " bear"
However, when I try a look ahead, the word 'eat' is broken apart.
strsplit(string_txt, "(?=eat)", perl = TRUE)
[[1]]
[1] "apple " "e" "at bear"