我正在尝试将文本从文件拆分为单词
split("[^0-9a-zA-Z]+")
但结果有空字符串。我该如何解决这个问题?
长度 | 数组中的数字| 词 | 计数 | %
2 [ 1] to 9 5.56 %
0 [ 2] 6 3.70 %
5 [ 3] there 6 3.70 %
6 [ 4] result 3 1.85 %
4 [ 5] text 3 1.85 %
3 [ 6] but 3 1.85 %
输出是:
I'm trying to split text from file to words
split("[^0-9a-zA-Z]+")
but there are result empty strings too. Is there any solutions to solve this problem?
3次粘贴