strrpos

Description

Finds the numeric position of the last instance of a character or string within another string.

 integer strrpos( string haystack, string needle, integer offset )

Finds the numeric position of the last instance of needle in the haystack string.

  • haystack is the string to search through.
  • needle is the substring to match in haystack.
  • offset is the index (starting at 0) of the string to start at.

Example

{strrpos('Sailthru and Zephyr are fun and games','and')}   =  28
{strrpos('Sailthru and Zephyr are fun and games','and',20)}   =  9
Top