Skip to content

search

relationalai.semantics.std.re
search(regex: StringValue, value: StringValue, pos: IntegerValue = 0) -> RegexMatch

Search for the regex pattern in the value starting at the given position.

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

  • regex

    (StringValue) - The regular expression pattern.
  • value

    (StringValue) - The string value to search in.
  • pos

    (IntegerValue, default: 0) - The starting position for the search (0-based). Default: 0.
  • RegexMatch - A RegexMatch object representing the search result.
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Match text with patterns
            └──  Know current std.re limitations