MarkLogic 10 Product Documentation
fn:substring-beforefn:substring-before(
$input as xs:string?,
$before as xs:string?,
[$collation as xs:string]
) as xs:string?
Summary
Returns the substring created by taking all of the input characters
that occur before the specified $before characters.
Parameters |
input |
The string from which to create the substring.
|
before |
The string before which the substring is created.
|
collation |
The optional name of a valid collation URI. For information on the
collation URI syntax, see the Search Developer's Guide.
|
Example
fn:substring-before("abcdef", "def")
=> abc
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.