fork download
  1. import re
  2. words = {"blue", "ah", "sky", "wow", "neat"}
  3. rx = re.compile(r'(?:[^\W\d_]{2})+')
  4. print( [w for w in words if rx.fullmatch(w)] )
Success #stdin #stdout 0.02s 9460KB
stdin
Standard input is empty
stdout
['blue', 'ah', 'neat']