} else if(preg_match('/^(::+)((?:[0-7]{6} )+)((?:[0-9a-fA-F]{40} )+)([a-zA-Z]+)\t(.*)$/i', $line, $matches)) {
$entry['parents'] = strlen($matches[1]);
$from_modes = explode(" ", $matches[2]);
} else if(preg_match('/^(::+)((?:[0-7]{6} )+)((?:[0-9a-fA-F]{40} )+)([a-zA-Z]+)\t(.*)$/i', $line, $matches)) {
$entry['parents'] = strlen($matches[1]);
$from_modes = explode(" ", $matches[2]);