LearnPy Hub
← Regular Expressions problems
Medium

Split on Several Separators

Split the line on commas, semicolons, pipes or spaces (any mix, any number) and print the pieces one per line, skipping empty ones.

Input

One line.

Output

Lines.

Sample 1

Input
rice, eggs;tea | milk
Output
rice
eggs
tea
milk

Sample 2

Input
single
Output
single
solution.py
Output appears here
Split on Several Separators · Python practice problem · LearnPy Hub