Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function replaces the first occurrence of a given substring with a given replacement. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
findReplaceFirst(text, stringToBeReplaced, replacement) #Output: Text |
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
This function returns a
|
UI Text Box | ||
---|---|---|
| ||
If you want to use a regular expression instead, have a look at replaceFirst(). If you want to replace all occurences of a substring, have a look at findReplaceAll(). |
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|