simplify ossl regex