@Override
        public String toString() {
            return String.format("regex(%s)", pattern.pattern());
        }
Allows for a compiled version of the regex pattern.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Text.java