Total players online: 11



Take the Tour | Site Map

Name

replace — Replaces a substring match with another string.

Synopsis

call string.txt replace { string } { search } [ replace ] [ return ]

Author

tcb and Blast aka Devine

Parameters

Table 102. replace parameters

NameDescription
stringString to replace in
searchString to be replaced
replaceString to be inserted (empty string if ommited)
returnName of return value ('return' by default)

Description

Replaces a substring match with another string.

Returns

@%4 is the string %1 with %2 replaced with %3

Changes

#strRes

Example

call string.txt replace this_is_a_string _ #spc token
display ok %token