---
title: rlike (Column)
description: "Column.rlike method in PySpark: SQL RLIKE (regex LIKE) pattern matching."
canonical_url: https://docs.databricks.com/aws/en/pyspark/reference/classes/column/rlike
---

# rlike (Column)

SQL RLIKE (regex LIKE) pattern matching.

## Syntax

```python
rlike(other)
```

## Parameters

| Parameter | Type | Description                       |
| --------- | ---- | --------------------------------- |
| `other`   | str  | Regular expression pattern string |

## Returns

Column (boolean)

## Examples

```python
df = spark.createDataFrame(
     [(2, "Alice"), (5, "Bob")], ["age", "name"])
df.filter(df.name.rlike('ice$')).collect()
```

```Output
# [Row(age=2, name='Alice')]
```
