Question: I have to read a text file line by line and extract some part of each line. I have a working code if the line I am reading is in the expected format but this is not always the case. There are errors in the file, i.e. some missing information or characters. So I want to skip these faulty lines. For this, I want to utilize `regular expression` module. I defined the regular expression I need. Lets say, `reg_exp_string` is going to be matched with the line I read. I want a full match, I do not want to searh some part of the text. If it is a full match return true, otherwise return false. The think is, I tried `re.match()` and it returns an object. I couldn't figure it out. What is the correct way to use it? It always returns an object if some part of the string matches with the regular expression. I want a full match only and get a boolean answer. How can I do this?

Answer: 
The documentation for match objects is [a little further down](http://docs.python.org/library/re.html#match-objects).
`re.match()` should return a match object, unless there is no match, in which case it returns `None`:

<http://docs.python.org/library/re.html#re.match>