in reply to with better example
in thread replacing text in specific tags

You know, it would really, really help if you post your real problem the first time around. Now I've wasted time answering a question that isn't your problem at all.

I'm not going to waste more time on you. One last hint: if you have exhausted your input in your first while loop, there isn't more input to read in the second loop.

Goodbye.

Abigail