public static TextP regex(final String value) {
        return new TextP(new Text.RegexPredicate(value, false), value);
    }
Determines if String has a match with the given regex pattern. The TinkerPop reference implementation uses
Java syntax for regex. The string is considered a match to the pattern if any substring matches the pattern. It
is therefore important to use the appropriate boundary matchers (e.g. `$` for end of a line) to ensure a proper
match.

@since 3.6.0
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TextP.java