Loading TOC...

fn.substringBefore

fn.substringBefore(
   $input as String?,
   $before as String?,
   [$collation as String]
) as 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.substringBefore("abcdef", "def");

=> abc

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy