Advertisement
here2share

# split_strings_with_multiple_delimiters_no_regex.py

Sep 5th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # split_strings_with_multiple_delimiters_no_regex.py
  2.  
  3. mystr='''abc-123_Hi, It's Python!:::"Easy... As... Py"'''
  4. splitat=';:,._"'
  5.  
  6. s=mystr
  7. for i in splitat: s=s.replace(i,' ')
  8. s=s.split()
  9. print s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement