I have the following string:
FFDEFFDFFDCFFDDFFAAF
and the following regex pattern:
FF..FF
Running gregexpr will result in the following:
gregexpr('FF..FF','FFDEFFDFFDCFFDDFFAAF')
[[1]]
[1] 1 8
attr(,"match.length")
[1] 6 6
attr(,"useBytes")
[1] TRUE
But there is one match missing, as there are three occurrences of the pattern:
FFDEFFDFFDCFFDDFFAAF
FF..FF || || ||
FF..FF ||
FF..FF
Any idea why is this happening and how to resolve this?