Tag Link | [String_Replace] | Category | String |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 2.5 |
Change | Unchanged | Data Source | Any |
Output Type | String | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5 |
[String_Replace] takes three parameters: a string, a
[String_Replace: 'String Value',
Required Parameters | |
---|---|
String Value | The string which should be modified. |
-Find | The value which is to be found. |
-Replace | The value which is to replace each instance of the found parameter. |
Optional Parameters | |
Encoding Keyword | Specifies the encoding for the tag's return value. Tags are encoded using |
To replace a word within a string:
Use the [String_Replace] tag. The tag replaces the first instance of the found pattern within the string. The following example replaces the word Green with the word Blue.
[String_Replace: 'Green World',
Blue World