substring-after

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

substring-after 関数は、与えられた文字列内で、与えられた部分文字列よりも後にある残りの部分を返します。

構文

substring-after(haystack ,needle )

引数

haystack

評価される文字列。この文字列の一部が返される。

needle

検索する文字列。haystack 内で最初に見つかった needle よりも後にあるすべての文字が返される。

返値

文字列。

XPath の例 出力
substring-after('aa-bb','-') bb
substring-after('aa-bb','a') a-bb
substring-after('aa-bb','b') b
substring-after('aa-bb','q') (空文字列)

定義元

Gecko での対応

対応済み。