replace

Syntax

string replace(inputString, oldString, newString)

Parameters

Returns

Copy of inputString with oldString replaced by newString.

Description

This function replaces all occurences of the oldString inside the inputString with the newString.

Related

Examples

replace("rule your city with cityengine","your city","designs")
# result = "rule designs with cityengine"

replace("myTexture.#.jpg","#","1")
# result = "myTexture.1.jpg"
# this example is e.g. useful for index-based texturing

Copyright ©2008-2023 Esri R&D Center Zurich. All rights reserved.