Sorry, I didn't mean the perl form of tainted--but the english form. I can literally set the strings to the same value and it fails. Also weird, I can detect that failure case, and branch code there and do a new regex with the same variables and that one succeeds.