RIGHTOFLAST
r = RIGHTOFLAST (s1, s2)
Returns the right part of string s1
at the position of
the last occurrence of string s2
in s1
. If
s2
does not occure in s1
RIGHTOFLAST returns
an empty string.
Example
"abcdefcd123"
s =
print rightoflast(s, "cd") ' Output: 123
print rightoflast(s, "a") ' Output: bcdefcd123
print rightoflast(s, "3") ' Output:
print rightoflast(s, "xx") ' Output:
String
ASC
BCS
BIN
CBS
CHOP
CHR
DISCLOSE
ENCLOSE
FORMAT
HEX
INSTR
JOIN
LCASE
LEFT
LEFTOF
LEFTOFLAST
LOWER
LTRIM
MID
OCT
REPLACE
RIGHT
RIGHTOF
RIGHTOFLAST
RINSTR
RTRIM
SINPUT
SPACE
SPC
SPLIT
SPRINT
SQUEEZE
STR
STRING
TRANSLATE
TRIM
UCASE
UPPER
VAL
If there is insufficient information on this page and you wish learn more about RIGHTOFLAST,
please send an email to smallbasic@gmail.com. You can help to improve information about
RIGHTOFLAST by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.