Page History
Page properties | |||||||||
---|---|---|---|---|---|---|---|---|---|
| Status | ||||||||
Tech review |
| ||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Replaces the first occurrence of a given substring with the given replacement.
Status | ||||||
---|---|---|---|---|---|---|
|
size | medium |
---|---|
type | info |
This function replaces the first occurrence of a given substring with the 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 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|