I have a function to pick out lumps from a list of strings and return them as another list:
def filterPick(lines,regex): result = [] for l in lines:
return [m.group(1) for m in (re.search(regex, l) for l in lines) if m]