|
Construct a list of dictionaries based of the specified file. First we
check if we are dealing with a file object of a list object. We iterate
through all the lines in the file. If a list parameter was provided, a
line is represented by a list element. The inner loop is for the
attributes in which we are searching. We match against the attribute's
regular expression and add it to the dictionary of found results. The
dictionary represnting the current object is considered complete when the
number of found attributes matches the number of attributes we are
looking for.
- Parameters:
file (File/List) - The file we are parsing.
- Returns: List
- A list of parse results.
|