syntax:functions:replace
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
syntax:functions:replace [2015/01/31 16:33] – created dmitry | syntax:functions:replace [2021/08/16 02:13] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Replace(text, | + | ======Replace(text, |
+ | Category: | ||
- | Replaces | + | \\ |
+ | =====Description===== | ||
+ | This function replaces | ||
- | All arguments are implicitly converted | + | \\ |
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |text|Text|Any text value or value that can be implicitly converted | ||
+ | |old_text|Text|The text to be found within //text// and replaced by // | ||
+ | |new_text|Text|The text that replaces // | ||
+ | |||
+ | **Return value type:** Text | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | This function is case sensitive. | ||
+ | |||
+ | Entering '' | ||
+ | |||
+ | Number values entered for //text//, // | ||
+ | |||
+ | \\ | ||
+ | **Multiple numeric 0s (zeroes) as // | ||
+ | Use caution when searching for, or replacing with, a numeric value of multiple zeroes, such as 000. These values are implicitly converted to a //single zero// in text form and will search for/replace with a single zero. To search for or replace using multiple zeros, enter the value as text, using quotes. | ||
+ | |||
+ | replace(123456, | ||
+ | |||
+ | replace(120056, | ||
+ | \\ | ||
+ | To remedy this issue, enter the 000 and 00 values as text: " | ||
+ | replace(123456, | ||
+ | |||
+ | replace(120056, | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | replace(' | ||
+ | |||
+ | replace(' | ||
+ | |||
+ | replace(' | ||
+ | |||
+ | replace(123456789, | ||
+ | |||
+ | replace(190091, | ||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: |
syntax/functions/replace.txt · Last modified: 2021/09/08 14:19 by craigt