listRemove

Syntax

string listRemove(stringList, searchString)

Parameters

Returns

Removed first occurrence of searchString from stringList.

Description

This function removes the first occurrence of searchString from the stringList. Optional: Leading or trailing * in searchString are used as wildcard.

Note: String lists are a series of strings stored inside one string. The elements are separated by a semicolon (";"). Each item must be followed by a semicolon, also the last one! The data type is "string", thus it is not an array as used in other scripting languages.

Related

Examples

listRemove("rule;your;city;","your")
# result = "rule;city;"

listRemove("rule;your;city;","*u*")
# result = "your;city;"

listRemove("floor_1;floor_2;floor_3;", "*_2")
# result = "floor_1;floor_3;"

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