def re_search(arg, pattern): """ Search string values using a regular expression. Returns True if the regex matches a string and False otherwise. Parameters ---------- pattern : string (regular expression string) Returns ------- searched : boolean value """ return _ops.RegexSearch(arg, pattern).to_expr()
def re_search(self, pattern: str | StringValue) -> ir.BooleanValue: """Return whether the values match `pattern`. Returns `True` if the regex matches a string and `False` otherwise. Parameters ---------- pattern Regular expression use for searching Returns ------- BooleanValue Indicator of matches """ import ibis.expr.operations as ops return ops.RegexSearch(self, pattern).to_expr()