substring-after
The substring after the first occurrence of a delimiter
Description
The fn:substring-after function extracts all the characters of a string ($arg1) that appear after the first occurrence of another specified string ($arg2).
Parameters |
Description |
---|---|
arg1:string() |
the entire string |
arg2:string() |
the string to start the substring after |
collation:string() |
the collation to use to compare strings |
Examples
XPath |
Results |
---|---|
substring-after(‘query’, ‘u’) |
ery |
substring-after(‘queryquery’, ‘ue’) |
ryquery |
substring-after(‘query’, ‘y’) |
zero-length string |
substring-after(‘query’, ‘x’) |
zero-length string |
substring-after(‘query’, ‘’) |
query |
substring-after(‘’, ‘x’) |
zero-length string |