Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # split_strings_with_multiple_delimiters_no_regex.py
- mystr='''abc-123_Hi, It's Python!:::"Easy... As... Py"'''
- splitat=';:,._"'
- s=mystr
- for i in splitat: s=s.replace(i,' ')
- s=s.split()
- print s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement