SubstringBeforeLast-Altova
substring-before-last(MainString as xs:string, CheckString as xs:string) as xs:string XP3.1 XQ3.1 If CheckString is found in MainString, then the substring that occurs before CheckString in MainString is returned. If CheckString is not found in MainString, or if CheckString is an empty string, then the empty string is returned. If there is more than one occurrence of CheckString in MainString, then the substring before the last occurrence of CheckString is returned.
|