in reply to Re: regex code embedding problem?
in thread regex code embedding problem?

Thanks, kvale,

I'm going to agree that this is something strange with lexicals and the regular expression engine. I tried bringing the lexical outside of the loop with success, as you suggested, but I thought the result was quite interesting upon putting it in the same scope as the regular expression. A mystery to me...