I beleive that the proper way to parse the file (and using the matching suggested) would be with readlines.
Only line by line can tell you if the expression does *not* exist on a given line.
Not familiar enough with re.search to know if defaults to line-by-line.
`
Only line by line can tell you if the expression does *not* exist on a given line.
Not familiar enough with re.search to know if defaults to line-by-line.
`