@Override
        public boolean test(final String value, final String expression) {
            // expression can be ignored here since it was passed in on construction in TextP
            final Matcher matcher = pattern.matcher(value);
            return negate != matcher.find();
        }
Allows for a compiled version of the regex pattern.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Text.java