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()
+ 0 comments regex_pattern = r"[,.]"
import re print("\n".join(re.split(regex_pattern, input())))
+ 0 comments regex_pattern = r"[\b\W\b]+" # Do not delete 'r'.
import re
print("\n".join(re.split(regex_pattern, input())))
+ 0 comments regex_pattern = r"\W" # Do not delete 'r'.
import re print("\n".join(re.split(regex_pattern, input())))
+ 0 comments regex_pattern = r"[\b\W\b]+" # Do not delete 'r'. import re print("\n".join(re.split(regex_pattern, input())))
+ 0 comments r=[^0-9]
Load more conversations
Sort 260 Discussions, By:
Please Login in order to post a comment