Closed kbenoit closed 6 years ago
Maybe I'm daft here, but why does the first one not work?
> stringi::stri_split_regex("one\ntwo\tthree", "\\p{Z}+") [[1]] [1] "one\ntwo\tthree" > stringi::stri_split_regex("one\ntwo\tthree", "\\p{WHITE_SPACE}+") [[1]] [1] "one" "two" "three"
Hi Ken, see Table 12 in http://www.unicode.org/reports/tr44/tr44-21.html
http://www.fileformat.info/info/unicode/char/000A/index.htm
newline is \p{Cc}
\p{Cc}
Maybe I'm daft here, but why does the first one not work?