【发布时间】:2011-12-28 03:58:16
【问题描述】:
我正在寻找相当于
的 PythonString str = "many fancy word \nhello \thi";
String whiteSpaceRegex = "\\s";
String[] words = str.split(whiteSpaceRegex);
["many", "fancy", "word", "hello", "hi"]
【问题讨论】:
标签: python regex string split whitespace