private function parse($line, $regexp) { $matches = NULL; if (!preg_match("/{$regexp}/", $line, $matches)) { return NULL; } return $matches[1]; }