Hi tshikose,
You post is brilliant, very and quick and perfect and you even added commented out if failed to open file, that was great, thank you so much, it works.
so I am going to be cheacky and and as one more question regarding this, can I use a array (multiple patterns, that would print out 1 per line.
search = array('pattern_1', 'pattern_2', 'pattern_3');
then intead of
if (preg_match("/$search/", $file_line))
do something like
foreach (preg_match("/$search/", $file_line))
{
print "$file_line <BR>";
}
I've tried that but did not work
Anyway I would like to say thanks for the help you have already provided.