Re: [R] stringi behaves differently in 2 similar situations

2016-11-30 Thread Sarah Goslee
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) [,

[R] stringi behaves differently in 2 similar situations

2016-11-30 Thread Dimitri Liakhovitski
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?