code: def regex_replace(arg, pattern, replacement):
      
      return ops.RegexReplace(arg, pattern, replacement).to_expr()
docs: Replaces match found by regex with replacement string.
      Replacement string can also be a regex
  
      Parameters
      ----------
      pattern : string (regular expression string)
      replacement : string (can be regular expression string)
  
      Examples
      --------
      >>> import ibis
      >>> table = ibis.table([('strings', 'string')])
      >>> result = table.strings.replace('(b+)', r'<\1>')  # 'aaabbbaa' becomes 'aaa<bbb>aaa'  # noqa: E501
  
      Returns
      -------
      modified : string