Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. XML
  3. XPath
  4. Reference
  5. Functions
  6. substring-after

substring-after

Thesubstring-after function returns a string that is the rest of a given string after a given substring.

Syntax

substring-after( haystack, needle )

Parameters

haystack

The string to be evaluated. Part of this string will be returned.

needle

The substring to search for. Everything after the first occurrence ofneedle inhaystack will be returned.

Return value

A string.

Examples

XPath ExampleOutput
substring-after('aa-bb','-')bb
substring-after('aa-bb','a')a-bb
substring-after('aa-bb','b')b
substring-after('aa-bb','q')(empty string)

Specifications

XPath 1.0 4.2

Gecko support

Supported.

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp