Skip to content

Instantly share code, notes, and snippets.

@velppa
Last active December 16, 2015 00:39
Show Gist options
  • 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 '[email protected], , , [email protected], , '.split(',')]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment