substring-before()
This function returns the partial text of text a that lies before the occurrence of search text b.
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 |
|
|