XPath:Functions:substring-after
From MDC
Contents |
The substring-after function returns a string that is the rest of a given string after a given substring.
[edit] Syntax
substring-after( haystack , needle )
[edit] Arguments
haystack- The string to be evaluated. Part of this string will be returned.
needle- The substring to search for. Everything after the first occurence of
needleinhaystackwill be returned.
[edit] Returns
A string.
[edit] Examples
| XPath Example | Output |
|---|---|
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) |
[edit] Defined
[edit] Gecko support
Supported.