LEFTOFLAST

s = LEFTOFLAST (s1, s2)

Returns the left part of s1 at the position of the last occurrence of the string s2 in string s1. If s2 does not occure in s1, an empty string will be returned.

Example

s1 = "abcdefdeg"
s2 = "de"
print LEFTOFLAST(s1, s2)      ' Output: abcdef
Code samples using LEFTOFLAST
String
If there is insufficient information on this page and you wish learn more about LEFTOFLAST, please send an email to smallbasic@gmail.com. You can help to improve information about LEFTOFLAST by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.