Use a negative lookahead and a negative lookbehind: > s = "one two 3.4 5,6 seven.eight nine,ten" > parts = re.split('\s|(?<!\d)[,.](?
確定! 回上一頁