Skip to content

sub

relationalai.semantics.std.re
sub(regex: StringValue, repl: StringValue, value: StringValue)

Replace occurrences of the regex in the value with the replacement string.

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

  • regex

    (StringValue) - The regular expression pattern.
  • repl

    (StringValue) - The replacement string.
  • value

    (StringValue) - The string value to perform substitution on.
  • Expression - An Expression computing the substituted string. Returns 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