=====Problem Statement=====
You are given a string 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 s.

It’s guaranteed that every comma and every dot in s is preceeded and followed by a digit.

Difficulty: introductory

Starter code:

regex_pattern = r""	# Do not delete 'r'.

import re
print("\n".join(re.split(regex_pattern, input())))

Solutions:
#!/usr/bin/env python3

import re

def __starting_point():
    out = list(re.split('[.,]', input()))
    print("\n".join(filter(lambda x: re.match('[0-9]+',x), out)))
__starting_point()