XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
883
Replace()
This function replaces all occurrences of one string with another within a given string.
Syntax
Replace(s1, s2[, s3])
Parameters
s1
is the source string.
s2
is the string to be replaced.
s3
is the replacement string.
If s3 is omitted or null, the empty string is used.
Returns
The replaced string or null if any of its mandatory parameters are null.
Examples
Replace("it's a dog's life", "dog", "cat")
returns the string "it's a cat's life".
Replace("it's a dog's life", "dog's ")
returns the string "it's a life".
Home Index Bookmark Pages
Pages: Home Index All Pages