Skip to content

findall

relationalai.semantics.std.re
findall(regex: StringValue, value: StringValue) -> tuple[Variable, Variable]

Find all non-overlapping matches of the regex in the value.

.. note:: This function is not yet implemented.

  • tuple[Variable, Variable] - A tuple of (position, match) Variables representing all matches. Position is Integer, match is String.
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Match text with patterns
            └──  Know current std.re limitations