> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/replace.md).

# Replace

## Description

The replace part is used to replace all instances of one string of text or variable with the another. With this part, you identify an input string, the text in which you want to search, and the replacement text the system should insert.

**Node Type:** This part is located in process nodes in the Text manipulation dropdown menu.

**Used With:** This part can be used in applications based on all LogicNets frameworks as well as in applications that do not use a framework.

## Use

This part is most often used to convert information imported/loaded from external systems or to strip specific characters from user-input text.

## Editor Fields

| Field Name         | Description/Use                                                                                                                                                                                                                                                                 | Type/Options        | Optional/Mandatory                                                                |           |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | --------------------------------------------------------------------------------- | --------- |
| Input variable     | In this field you specify the text or variable that contains the content you want the system to replace.                                                                                                                                                                        | Data object \| Text | Mandatory                                                                         |           |
| Match              | In this field you specify the content that you would like the system to replace.                                                                                                                                                                                                | Data object \| Text | Mandatory                                                                         |           |
| Replace            | In this field you specify the text that replaces the existing text.                                                                                                                                                                                                             | Data object \| Text | Mandatory                                                                         |           |
| Path               | In this field you define the name of the place or variable name that will hold the replaced text. In other words, it holds your results.                                                                                                                                        | Data object \| Text | Mandatory                                                                         |           |
| Regular Expression | <p>If you check this box the system allows the use of Lua v4 regular expression syntax for the match and replace strings.<br>See <a href="https://www.lua.org/manual/4.0/manual.html#6.2"><em>Lua 4.0 Reference Manual</em></a> <em>Gsub section</em> for more information.</p> | <p>On               | Off<br>For all Releases prior to v7.4.3 this feature is hidden but set to On.</p> | Mandatory |

## Example

Download and import the following [example project](/release-9/example-gallery/example-projects-for-parts/replace-example-project.md) in your workspace.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/replace.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
