replace

Description

Locate a particular set of characters or a pattern within a text and substitute it with something else.

Input / Parameter

Note: See [Regular Expression Guide] to understand regular expression more.

Output

Callback

N/A

Video

Coming soon.

Example

The user wants to replace some words in a string.

Step

  1. Call the function console. Call the function replace inside the value parameter of the console function. string: I am studying. replace: studying replacement: working

Result

Last updated