Despite attempts to master grep and related GNU software, I haven\'t come close to mastering regular expressions. I do like them, but I find them a bit of an eyesore all the sam
You don't need regex for this.
result = [w for w in vocab if len(w) >= 8]
but if regex must be used:
rx = re.compile('^.{8,}$') # ^^^^ {8,} means 8 or more. result = [w for w in vocab if rx.match(w)]
See http://www.regular-expressions.info/repeat.html for detail on the {a,b} syntax.
{a,b}