fn.substringBefore( input as String?, before as String?, [collation as String] ) as String?
Returns the substring created by taking all of the input characters that occur before the specified $before characters.
fn.substringBefore("abcdef", "def"); => abc
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.