Code:
on *:text:!search *:#:{
filter yourtextfile.txt out.txt * $+ $2-*
var %a = 1, %b = $iif($filtered > 3,3,$v1)
while (%a <= %b) {
.timer 1 1 msg $chan Found $read(out.txt,%a) in the file.
if (%a == 3) && ($filtered >= 3) {
.timer 1 1 msg $chan There are more than 3 results for " $+ $2", try being more correct.
break
  }
inc %a
 }
.remove out.txt
}
Replace yourtextfile.txt with your file and try it, I have not tested, but should work.

Edit : the code is doing what genius_at_work said, but instead of strip non matching line, it put all matching line in a file.

Last edited by Wims; 04/03/09 03:34 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel