I am running the following code:
str_extract_all("AAAAAAAAAAAAAAAXAAAAAAAAAXBAAAAAAAAA", ".{5}X.{5}")
but I only get one string back. However, if I rerun the same code with 4 elements each side, I get two strings as expected. So I understand the problem is the extracted strings will overlap on their sides (9 characters length between the "X"). This behaviour seems not to be documented in ?str_extract_all. Any suggestions how I can get all the strings, even if their ends overlap?