substring-before( a, b, c )


Returns the partial text of text a that lies before the occurrence of search text b.

Description of Parameters


Parameter

Description

a

Text.

b

Search text.

c

(optional) If true, then a and b are treated case-insensitive, if false they are not. Default: false .


Examples


Parameter a

Parameter b

Parameter c

Result

abcdef

def


abc

abcdef

x