"; else //if it is an odd match the background colour is set thusly. Foresooth! bigstring+=" |
";
bigstring+=profiles[i].split(query)[0]; //the beginning of the matched entry is left alone
bigstring+="";
bigstring+=query; //the matched part of the entry is printed in red
bigstring+="";
bigstring+=profiles[i].split(query)[1].split("|")[0]; //the remaining part of the matched entry is left alone
bigstring+=" "; for (var j=1; j<4; j++) //each of the rest of the fields is printed out for the matched entry { bigstring+=profiles[i].split("|")[j]+" "; } bigstring+=" |