P19172 [HackerRank] Re split
普及-
题目描述

Check Tutorial tab to know how to to solve.

You are given a string $\boldsymbol{s}$ consisting only of digits 0-9, commas ,, and dots .

Your task is to complete the regex_pattern defined below, which will be used to re.split() all of the , and . symbols in $\boldsymbol{s}$.

It’s guaranteed that every comma and every dot in $\boldsymbol{s}$ is preceeded and followed by a digit.

Sample Input 0
100,000,000.000

Sample Output 0
100
000
000
000

输入格式

见题面

输出格式

见题面

样例输入
100,000,000.000
样例输出
100 000 000 000