.. _functx_substring-after-last: =========================== functx:substring-after-last =========================== O trecho depois da última ocorrência de um delimitador Descrição ~~~~~~~~~ A função functx:substring-after-last devolve a parte de $arg que vem depois da última ocorrência de $delim. Se $arg não contiver $delim, devolve $arg inteiro. Se $arg for a sequência vazia, devolve uma string vazia. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - arg:string() - a string de onde tirar o trecho * - delim:string() - o delimitador Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:substring-after-last('abc-def-ghi', '-') - ghi * - functx:substring-after-last('abcd-abcd', 'ab') - cd * - functx:substring-after-last('abcd-abcd', 'x') - abcd-abcd Depende de ~~~~~~~~~~ * :ref:`functx_escape-for-regex`. Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`substring-after`. * :ref:`functx_substring-before-last`. * :ref:`functx_substring-after-last-match`.