support for FAIL_REGULAR_EXPRESSION