# ReplaceRegex

## Overview

![The ReplaceRegex Node.](https://3875032344-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSX7w874Eg6ode1ivk0ZM%2Fuploads%2Fgit-blob-b7f72d2c86cd1df39f1cf2cc4e3308b83c3dea9f%2Fnode-replaceregex.png?alt=media)

The **ReplaceRegex** **Node** allows to replace parts of a **String** using regular expressions to search for the pattern to replace.

## Attributes

### Inputs

| Attribute | Type       | Description                                                                                                             |
| --------- | ---------- | ----------------------------------------------------------------------------------------------------------------------- |
| `String`  | **String** | **String** in which some parts will be replaced, if none is given in the **Input Socket**.                              |
| `From`    | **String** | The pattern that will be searched for and replaced using regular expressions, if none is given in the **Input Socket**. |
| `To`      | **String** | **String** that will replace the pattern defined in `From`, if none is given in the **Input Socket**.                   |

## Inputs

| Input             | Type       | Description                                                                   |
| ----------------- | ---------- | ----------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**  | A standard **Input Pulse**, to trigger the execution of the **Node**.         |
| `String`          | **String** | **String** in which some parts will be replaced.                              |
| `From`            | **String** | The pattern that will be searched for and replaced using regular expressions. |
| `To`              | **String** | **String** that will replace the pattern defined in `From`.                   |

## Outputs

| Output             | Type       | Description                                                                                                                            |
| ------------------ | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**  | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Result`           | **String** | The resulting **String** after the pattern has been replaced.                                                                          |

## See Also

* [**Replace**](https://docs.incari.com/incari-studio/2021.4/toolbox/string/replace)

## External Links

* [*Regular expression*](https://en.wikipedia.org/wiki/Regular_expression) on Wikipedia.
