substring-before( a, b )


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

Description of Parameters


Parameter

Description

a

Value.

b

Search text.


Examples


Parameter a

Parameter b

Result

abcdef

def

abc

abcdef

x