Replace(String1: String, String2: String, String3: String): String
Replaces a specified substring with another substring.
All occurrences of String2 in String1 are replaced with String3. String comparison is performed based on the current Option Compare setting.
Replace function syntax has these named arguments:
Parameter |
Description |
String1 |
Required. String to be searched for String2. |
String2 |
Required. String to be searched for in String1. |
String3 |
Required. String to replace String2 in String1. |
For example:
Replace("she comes and she goes", "she", "he")
Returns: he comes and he goes