I was able to use that code to take out a number of lines in the middle of an html document without a problem. That code is great, I have been trying to take out bulk amounts of html and now I can take out 120 lines of useless html with no hassle. Thanks again Kanji, parsing will never be the same for me.