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 |
If you check this box the system allows the use of Lua v4 regular expression syntax for the match and replace strings. See Lua 4.0 Reference Manual Gsub section for more information. |
On | Off For all Releases prior to v7.4.3 this feature is hidden but set to On. |
Mandatory |
Example
Download and import the following example project in your workspace.