in reply to Resetting variables

It is very hard to see how a hard coded regex would suddenly become invalid on a second pass. Indeed, it can't. At least not without something very, very unusual happening.

I think you need to post the complete script that demostrates the problem, because your description of the problem does not make great deal of sense, and without being able to run the same code you are running and thereby reproduce the same errors you are encountering, there is no real way to help you.


Examine what is said, not who speaks.        The end of an era!
"But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
"Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon