[String->Replace] returns the string with a given substring replaced. This tag requires two parameters. The first specifies the substring that should be replaced. The second specifies the replacement string.
Every instance of the substring will be replaced. Case is not used when determing what substring to replace.
This tag does not return any value, but the base string is modified in-place.
For more control use the [String_Replace] tag or the [String_ReplaceRegExp] tag.
[Variable: 'myString' = 'String Value']
[$myString->(Replace: 'Find', 'Replace')]
[Variable: 'myString']
See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 286.
Tag Link | [String->Replace] | Category | String |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft