This is an automated email from the ASF dual-hosted git repository. krlawrence pushed a commit to branch TINKERPOP-2652 in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 213a2913e6d3f5bf649fca9fff57223a74dd031e Author: Kelvin Lawrence <[email protected]> AuthorDate: Thu Nov 18 19:47:05 2021 -0600 Continue adding regex predicates to Python client --- .../src/main/python/gremlin_python/process/traversal.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gremlin-python/src/main/python/gremlin_python/process/traversal.py b/gremlin-python/src/main/python/gremlin_python/process/traversal.py index f8bb83c..67ea377 100644 --- a/gremlin-python/src/main/python/gremlin_python/process/traversal.py +++ b/gremlin-python/src/main/python/gremlin_python/process/traversal.py @@ -422,6 +422,11 @@ def notStartingWith(*args): def startingWith(*args): return TextP.startingWith(*args) +def regex(*args): + return TextP.regex(*args) + +def notRegex(*args): + return TextP.notRegex(*args) statics.add_static('containing', containing) @@ -435,6 +440,10 @@ statics.add_static('notStartingWith', notStartingWith) statics.add_static('startingWith', startingWith) +statics.add_static('regex', regex) + +statics.add_static('notRegex', notRegex) +
