Implement EXPECTREGEX section for PHPT test cases