getPrefix

Syntax

string getPrefix(inputString, matchString)

Parameters

Returns

Extract inputString up to first occurrence of matchString.

Description

This function extracts the inputString from the start of the inputString up to the beginning of the matchString.

Related

Examples

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

getPrefix("myTexture.has.prefix.jpg",".")
# result = "myTexture"

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