RIGHTOF

r = RIGHTOF (s1, s2)

Returns the right part of string s1 at the position of the first occurrence of string s2 in s1. If s2 does not occure in s1 RIGHTOF returns an empty string.

Example

s = "abcdef"

print rightof(s, "cd")  ' Output: ef
print rightof(s, "a")   ' Output: bcdef
print rightof(s, "f")   ' Output: 
print rightof(s, "xx")  ' Output: 
String
If there is insufficient information on this page and you wish learn more about RIGHTOF, please send an email to smallbasic@gmail.com. You can help to improve information about RIGHTOF by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.