Link Search Menu Expand Document

Replace

The replace command can be used on strings to replace a given sub-string with another

replace -[i] [string, string, string]

Overview

name: 'replace'
min: 3
max: 3
flags:
    - name: 'i'
      description: 'ignores the case of the string to be replaced'
arguments:
    - string
    - string
    - string
return: string

Example

>>> replace Hello Goodbye "Hello World"
Goodbye World