Skip to content

Instantly share code, notes, and snippets.

@WhiskersReneeWe
Created January 27, 2020 22:50
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 WhiskersReneeWe/04b591398cc49f76cc0886daf6e4ad98 to your computer and use it in GitHub Desktop.
Save WhiskersReneeWe/04b591398cc49f76cc0886daf6e4ad98 to your computer and use it in GitHub Desktop.
t = "57888888882339999"
str1 = "6539923335"
str4 = '234253876334'
def is_NumberStream(str):
import re
for i in t:
pattern = i * int(i)
if re.search(pattern, str):
return True
else:
return False
is_NumberStream(str4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment