We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Regex and Parsing
- Re.split()
- Discussions
Re.split()
Re.split()
Sort by
recency
|
290 Discussions
|
Please Login in order to post a comment
regex_pattern = r"[,.]" # Do not delete 'r'.
import re print("\n".join(re.split(regex_pattern, input())))
dont overthink it
regex_pattern = r"[,.]"
import re print("\n".join(re.split(regex_pattern, input())))