.. _substring-after: =============== substring-after =============== The substring after the first occurrence of a delimiter Description ~~~~~~~~~~~ The fn:substring-after function extracts all the characters of a string ($arg1) that appear after the first occurrence of another specified string ($arg2). .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg1:string() - the entire string * - arg2:string() - the string to start the substring after * - collation:string() - the collation to use to compare strings Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - substring-after('query', 'u') - ery * - substring-after('queryquery', 'ue') - ryquery * - substring-after('query', 'y') - zero-length string * - substring-after('query', 'x') - zero-length string * - substring-after('query', '') - query * - substring-after('', 'x') - zero-length string See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_substring-after-last`. * :ref:`functx_substring-after-last-match`. * :ref:`functx_substring-after-if-contains`. * :ref:`substring`. * :ref:`substring-before`.