count

Synopsis

float count(string inputString, string matchString)

Returns

Number of matches of matchString in inputString.

This function returns the number of matches of the matchString in the inputString.

Related

Examples

example.1
	count("cityengine", "e")
	# result = 2
	
example.2
	count("cityengine rocks my world; cityengine should rock yours too", "cityengine")
	# result = 2

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