I'm not sure about what you want, but i think you should user /filter with -k and g switch, call the alias you specified when matching a line in the text file for the pattern
How is your text file ? is there the string form or the right sentence ?

Edit : hope this help :

Code:
alias matchfile {
  filter -kg file.txt mfile_cb $+(/,$replacex($1-,$chr(32),.*,.,\.),/)
}
alias mfile_cb {
  echo -a matched file : $1-
}
file.txt contain thing like Thejappleu98falls9nfjfar28nkjfromjskfthe87asftree.
type /matchfile "sentence" to use it
for exemple /matchfile The apple falls far from the tree. will match Thejappleu98falls9nfjfar28nkjfromjskfthe87asftree.


Last edited by Wims; 20/06/08 09:52 PM.

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