Skip to content

Instantly share code, notes, and snippets.

@josephmosby
Created December 23, 2010 23:20
Show Gist options
  • Save josephmosby/753677 to your computer and use it in GitHub Desktop.
Save josephmosby/753677 to your computer and use it in GitHub Desktop.
Python function for splitting a string into a list, no delimiters required and all characters/operators together
def propListBreaker(x):
listmsg = re.split(r'(\D)',x)
for i in listmsg:
try:
listmsg.remove("")
except:
break
return listmsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment