[Parser] Reduce memory consumption when parsing IGC files

preg_match_all() is problematic when the IGC file is very large. To solve the issue, the file is splitted by lines and the regexp is matched against each of them.