replace in field | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Replaces text in a field container with other text with control over what happens to existing styling. | ||||||||||||
Introduced | 8.0 | ||||||||||||
OS | mac, windows, linux, ios, android | ||||||||||||
Platforms | desktop, server, mobile | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Keyword: string, field Glossary: command, regular expression, container Command: find, filter, replace Object: field Function: replaceText Control Structure: function | ||||||||||||
Description | Use the replace in field command to replace all instances of one string with another string in (part of) a field, with the choice as to whether styling is preserved or replaced. If the preserving form is used, then the found strings will be replaced in the target field and the replacement text will take the same style as the first character in the found string. If the replacing form is used, then the found strings will be replaced in the target field and the replacement text will have no style. All styling outside of the instances of the pattern which are found is unaffected. | ||||||||||||
Tags | text processing |