regex تقسيم السلسلة على المسافة البيضاء في Python
python regex string split whitespace
هذا السؤال لديه بالفعل إجابة هنا:
أنا أبحث عن ما يعادل بيثون
String str = "many fancy word \nhello \thi";
String whiteSpaceRegex = "\\s";
String[] words = str.split(whiteSpaceRegex);
["many", "fancy", "word", "hello", "hi"]
288 votes
python