Handle regexp-based catch statements in the yaml test suite