.. _functx_substring-after-last-match: ================================= functx:substring-after-last-match ================================= O trecho depois do último texto que casa com uma expressão regular Descrição ~~~~~~~~~ A função functx:substring-after-last-match devolve a parte de $arg que vem depois do último trecho que casa com $regex. Se $arg não casar com $regex, 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 * - regex:string() - a expressão regular Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:substring-after-last-match('abc-def-ghi', '[ad]') - ef-ghi * - functx:substring-after-last-match('abcd-abcd', 'bc?') - d * - functx:substring-after-last-match('abcd-abcd', 'x') - abcd-abcd Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`substring-after`. * :ref:`functx_substring-after-match`. * :ref:`functx_substring-after-last`. * :ref:`functx_substring-before-match`.