Try $read(file,r,/\bword\b/i)

Btw, if you're not sure that people will understand what you need, all you have to do is give as many examples as you feel necessary, like this:

"For example, I want to scan the file for the word hi but mIRC should not find lines containing this"