safe-regex-test

Give a regex, get a robust predicate function that tests it against a string.