Return substring of a string value following another string.
The following construct(s) refer to this construct:
fn:substring-after(string $string, string? $searchString) => string?
fn:substring-after(string $string, string? $searchString, string $collation) => string?
This function returns that part of $string
, which
follows the string value searchString
.
If the value of $string
or
$searchString
is the empty sequence, the function
returns the empty sequence. If the value of
$searchString
is the empty string, then the function
returns the value of $string
. If the value of
$string
does not contain a string that is equal to the
value of $searchString
, then the function returns the
empty string
$string |
string value |
---|---|
$searchString |
string value that is searched in |
$collation |
optional valid collation string literal |
This query returns the string value " Server":
substring-after("Tamino XML Server", "XML")