fork download
  1. import re
  2. values = ["14888838", "1111", "1359"]
  3. for s in values:
  4. if re.search(r'(\d)\1{3}', s):
  5. print(s)
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
14888838
1111