We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


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

Syntax

substring-after(haystack ,needle )

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 ofneedle inhaystack will be returned.

Returns

A string.

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)

Defined

XPath 1.0 4.2

Gecko support

Supported.

Document Tags and Contributors

Contributors to this page: SphinxKnight, Sheppy, Mgjbot, Docwhat, Dietrich, Ptak82, Waldo, Jonnyq
Last updated by: SphinxKnight,