The extract
function is used to extract a specific text from a wider text
Parameters
value
(string): the string where you want to replace part of. This parameter is mandatory.search
(string): The string or regular expression to search for. This parameter is mandatory.
Examples
Here are a few examples of how to use the replace
function:
Example 1: Replace a string with another string
extract("I like apple",search="I like (.*)")
This will gives the following result : apple