Ok, I'll see what I can do with that.. the arrays do make it easier..
also, most scripts will be small, but occasionally I'll get one that is pretty big, such as
http://www.aakanaar.com/furcadia/scripts/clipboard.txt
so question is, should i pass something that big as one string, using the multi-line option in the regex? or should i pass that one line at a time? Wich would be faster, or more optimized?