You can try this method which doenst use a regualr expression since thats would be slow method to do basic string matching and would be pretty slow when parsing a 9MB file.
Language: php (GeSHi-highlighted)
<?php
$keywords = 'Turin
22-09-06
Tw-09-hg';
$keywords = explode("\n", $keywords);
//$data = file('myfile.txt');
$data = explode("\n", 'Information: The Batch Tw-09-hg was started at 22-09-06 at 11:30PM by Turin
Information: Document upload starts
Information: Document closed at 11:40PM
Information: Hello World!
Information: The Batch Tw-09-hg was closed at 22-09-06 at 11:30PM by Turin');
$matches = array();
foreach ($data as $line)
{
$match = true;
foreach ($keywords as $keyword)
{
if (false === strpos($line, $keyword))
{
$match = false;
}
}
if ($match)
{
$matches[] = $line;
}
}
echo '<pre>';
print_r($matches);
?>