fix for regular expression engine bugs (causing *CSV* PHPT failures)