pyspark.sql.Column.rlike

Column.rlike(other: Union[Column, LiteralType, DecimalLiteral, DateTimeLiteral]) → Column

SQL RLIKE expression (LIKE with Regex). Returns a boolean Column based on a regex match.

Parameters
otherstr

an extended regex expression

Examples

>>> df.filter(df.name.rlike('ice$')).collect()
[Row(age=2, name='Alice')]