findLast

Syntax

float findLast(inputString, matchString)

Parameters

Returns

Last occurrence (position/index) of matchString in the inputString or -1 if it is not found.

Description

This function returns the index of the last occurrence of the match string in the input string

Note: Indices are 0 - based.

Related

Examples


	findLast("rule your city with cityengine","city")
	# result = 20
	# "rule your city with " = 20 characters; then the match string starts
	

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