Lua
C++
Edit

Replace

This method performs a search and replace operation on the string and returns the result.

Syntax

Parameter Description
searchtext text to search for
replacetext text to replace with

Returns

Returns the string with all instances of the search term replaced with the replacement text.

Example

local s = "Hello, how are you today?"
Print(Replace(s, "you", "we"))
Copyright © 2024 Ultra Software.
All rights reserved.