fork download
  1. import re
  2.  
  3. passwords = ['aaa5aa', 'adsfgg', 'e42dsf425']
  4.  
  5. regex = r'[a-z]{3}\d[a-z]{2}'
  6.  
  7. for p in passwords:
  8. if re.search(regex, p):
  9. print(p)
Success #stdin #stdout 0.03s 9600KB
stdin
Standard input is empty
stdout
aaa5aa