.. _functx_substring-after-match: ============================ functx:substring-after-match ============================ O trecho depois do primeiro texto que casa com uma expressão regular Descrição ~~~~~~~~~ A função functx:substring-after-match devolve a parte de $arg que vem depois do primeiro trecho que casa com $regex. Se $arg não casar com $regex, devolve $arg inteiro. Se $arg for a sequência vazia, devolve a sequência 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-match('abc-def-ghi', '[ce]') - -def-ghi * - functx:substring-after-match('abcd-abcd', 'ab?') - bcd-abcd * - functx:substring-after-match('abcd-abcd', 'x') - abcd-abcd Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`substring-after`. * :ref:`functx_substring-after-last`. * :ref:`functx_substring-before-match`.