Let me explain it a little better

on *:TEXT:*:#FFVXI:{
if ($nick == User) {
%globalvar = $6
}
}

now %globalvar contains line this292is98323an0293023example

now apart from storing the global variable in the same on text event I need a way to loop through (FILE.TXT) and match $6 or %globalvar for that matter.

So this means I do not have a static search I can do, this is always a variable change meaning I would have to loop through every single phrase in my .txt file (300KB) and perform some kind of regex match till it finds all words that match in the text file and return it to me.

So again when i get the string its encoded, my text file has a decoded version of all these strings thats why im asking if theres way to use regex or a better way that is fast that can compare all LINES in txt file in a jippy vs. %globalvar or $6


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }