---
title: "Replace Text Step"
url: "https://docs.robotiq.ai/en/article/replace-text-step"
language: "en"
last_updated: "2025-12-24T14:40:07.915Z"
---

# Replace Text Step

The Replace Text step finds specific characters or patterns in a text variable. It then swaps them out for new characters. You can save the changed text to a new variable or an existing one.

Use this step to clean up data, make text formats consistent, or change specific parts of a string.

## How to Use the Replace Text Step

### Step 1: Add the Replace Text Step

1.  Open your workflow in the Process Editor.
2.  Drag and drop the **Replace Text** step into your workflow.

### Step 2: Configure Input Parameters

**Source text variable** (Required)

-   The name of the string variable that holds the original text.
-   **Example:** `myOriginalString`

**Text to find** (Required)

-   The characters or regular expression you want to find in the `Source text variable`.
-   You can type in a value directly or use an existing variable.
-   **Example:** `"old_word"` or `searchPatternVariable`

**Replace with** (Required)

-   The characters that will take the place of the `Text to find`.
-   You can type in a value directly or use an existing variable.
-   **Example:** `"new_word"` or `replacementValueVariable`

**Ignore case** (Required)

-   A toggle to choose if the search should care about upper or lower case letters.
-   **T (True):** The search doesn't care about case (e.g., "Apple" matches "apple").
-   **F (False):** The search does care about case (this is the default).

**Use regex** (Required)

-   A toggle to choose if `Text to find` is a regular expression.
-   **T (True):** `Text to find` is treated as a regular expression.
-   **F (False):** `Text to find` is treated as a normal string (this is the default).

### Step 3: Configure Output Parameter

**Replaced text destination variable** (Required)

-   The name of the variable where the changed text will be saved.
-   You can pick an existing string variable or make a new one.
-   **Example:** `myModifiedString`

## Parameters Explained

**Step name** (Optional)

-   A custom name for this step in your workflow.
-   This helps you find the step in the Process Editor.

## Related Articles

-   [Set Variable Value Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/set-variable-value-step)
-   [Define Variable Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/define-variable-step)
-   [Get Subtext Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/get-subtext-step)
-   [Pad Text Step - Robotiq.ai Help Center](https://docs.robotiq.ai/en/article/pad-text-step)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/39df0ddb-27a7-4721-b2e9-e8965ba2c2e0)
