Skip to content

Instantly share code, notes, and snippets.

@klette
Created May 28, 2009 19:53
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 klette/119529 to your computer and use it in GitHub Desktop.
Save klette/119529 to your computer and use it in GitHub Desktop.
numbers = [num[0].replace(' ', '') for num in numbers if (num[0].startswith('9') and len(num[0]) == 8) \
or (num[0].startswith('4') and len(num[0]) == 8) \
or (num[0].startswith('+474') and len(num[0]) == 11) \
or (num[0].startswith('+479') and len(num[0]) == 11)\
or (num[0].startswith('00479') and len(num[0]) == 12)\
or (num[0].startswith('00474') and len(num[0]) == 12)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment