replace | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Replaces text in a container with other text. | ||||||||||||
Introduced | 1.0 | ||||||||||||
OS | mac, windows, linux, ios, android | ||||||||||||
Platforms | desktop, server, mobile | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Property: itemDelimiter Control Structure: function Keyword: string, field Object: field Glossary: command, regular expression, container, property Command: find, filter, replace, replace in field Function: replaceText | ||||||||||||
Description | Use the replace command to replace all instances of one string with another string. The replace command is faster than the replaceText function, but does not support regular expressions: you can replace only an exact string of text.
If the goal were to remove every lone y within two colons that appears in the text, it would be more effective to take advantage of how the text to remove is contained within two identical characters, along with the itemDelimiter property, such as in the following:
| ||||||||||||
Tags | text processing |