getSuffix function

Syntax

  • string getSuffix(inputString, matchString)

Parameters

  1. inputStringstring
  2. matchStringstring

Returns

Extract rest of inputString after last occurrence of matchString.

Description

The getSuffix function extracts the rest of the inputString after the last occurrence of the matchString.

Related

Examples

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

In this topic