public String getPattern() {
            return pattern.pattern();
        }
Allows for a compiled version of the regex pattern.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Text.java