Skip to content

Instantly share code, notes, and snippets.

@velppa
Last active December 16, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velppa/5349026 to your computer and use it in GitHub Desktop.
Save velppa/5349026 to your computer and use it in GitHub Desktop.
Removes multiple commas in string
', '.join(filter(lambda x: x != '', [x.strip() for x in 'asdf@gmail.com, , , qwer@gm.com, , '.split(',')]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment