Give a regex, get a robust predicate function that tests it against a string.
github.com/ljharb/safe-regex-test
ljharb/safe-regex-test