I want to split a string into several substrings at those positions where one or more whitespaces (tab, space,...) occur. In the documentation of strsplit() it says, that sp
Try
strsplit(test, '\\s+') [[1]] [1] "123" "nnn" "ffffdffffd"
\\s will match all the whitespace characters.
\\s