parameters: (lines, regex)
docstring: Filters each line of the given line iterator using the given regular
  	expression string. For each match, a tuple containing the text matching
  	each capture group from the regular expression is yielded.
docstring_summary: Filters each line of the given line iterator using the given regular
  	expression string. For each match, a tuple containing the text matching
  	each capture group from the regular expression is yielded.
docstring_tokens: Filters each line of the given line iterator using the given regular expression string . For each match a tuple containing the text matching each capture group from the regular expression is yielded .
function: def filterLines(lines, regex):
  	'''Filters each line of the given line iterator using the given regular
  	expression string. For each match, a tuple containing the text matching
  	each capture group from the regular expression is yielded.
  	'''
  	matcher = re.compile(regex)
  	for line in lines:
  		if line.endswith('\n'):
  			line = line[ : -1]
  		match = matcher.match(line)
  		if match:
  			yield match.groups()
function_tokens: def filterLines ( lines , regex ) : matcher = re . compile ( regex ) for line in lines : if line . endswith ( '\n' ) : line = line [ : - 1 ] match = matcher . match ( line ) if match : yield match . groups ( )