.. _functx_index-of-string-last: =========================== functx:index-of-string-last =========================== The last position of a substring Description ~~~~~~~~~~~ The functx:index-of-string-last function returns an integer representing the last position of $substring within $arg. If $arg does not contain $substring, the empty sequence is returned. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - the string * - substring:string() - the substring to find Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:index-of-string-last('abcdabcdabcd','abc') - 9 * - functx:index-of-string-last('abcd','abc') - 1 * - functx:index-of-string-last('xxx','abc') - () Depends On ~~~~~~~~~~ * :ref:`functx_index-of-string`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_index-of-string`. * :ref:`functx_index-of-string-first`. * :ref:`contains`.