I would like to add a full stop between each letter of a word using the reset match token (\K). I don't want to use a positive lookbehind.
gsub("\\pL\\K", ".", "adskhfks", perl = TRUE)
# [1] "a.ds.kh.fk.s"
For some reasons, that only works for every two letters (using RStudio 4.2.0 on macOS 12.31.). It works as expected on regex101.
Is this normal and is there a fix?