replace
Last updated
Last updated
Locate a particular set of characters or a pattern within a text and substitute it with something else.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
Note: See [Regular Expression Guide] to understand regular expression more.
Description | Output Type |
---|---|
N/A
Coming soon.
The user wants to replace some words in a string.
Call the function console
. Call the function replace
inside the value
parameter of the console
function.
string: I am studying.
replace: studying
replacement: working
string
The value to be updated.
String/Text
-
-
Yes
replace
The value to be replaced. It can be just a text or a regular expression (if 'regExp' is set to true).
String/Text
-
-
Yes
replacement
The value to use as a replacement.
String/Text
-
-
No
regExp
To use regular expression for the 'replace' value.
Boolean
false
-
No
Returns the updated value.
String/Text