A dot is treated differently if it has a number on no, one, or both sides.
> stri_extract_all_words("me.com", simplify = TRUE)
[,1]
[1,] "me.com"
> stri_extract_all_words("me1.com", simplify = TRUE)
[,1] [,2]
[1,] "me1" "com"
> stri_extract_all_words("me1.2com", simplify = TRUE)
[,
Hello!
library(stringi)
stri_extract_all_words("me.com", simplify = TRUE) # returns with a dot
stri_extract_all_words("watch32.com", simplify = TRUE) # removes the dot
Why is the dot removed only in the second case?
How is it possible to ask it NOT to remove the dot in the second case?
2 matches
Mail list logo