> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace

Replaces every instance of a substring within a text value with a replacement value.

**Category:** `text`

**Syntax:**

```
Replace([text_column], "substring", "replacement")
```

**Returns:** `StringColumn`

**Context Filtering:** ✓ Yes

## Parameters

| Name          | Type           | Required | Description                             |
| ------------- | -------------- | -------- | --------------------------------------- |
| `string`      | `text\|column` | ✓ Yes    | The text to be searched and modified.   |
| `substring`   | `text\|column` | ✓ Yes    | The substring to be found and replaced. |
| `replacement` | `text\|column` | ✓ Yes    | The text that replaces the substring.   |

**Allowed Column Types:** STRING, TEXT

## Validation

* Minimum parameters: 3
* Maximum parameters: 3

## Examples

```
Replace([Phone], "-", "")
```

Removes every dash from each phone number.

## Related Functions

* [Find](find) - Return the position of a substring instead of replacing it
* [Contains](contains) - Test whether a substring is present
* [Concat](concat) - Combine values into a single text value
