strrchr
Find the last occurrence of a character in a string
[...] = optional ... = your value
[var $... = ]call strrchr $haystack=…;$needle=…
Notes
Returns the part of the $haystack starting at the last occurrence of the $needle until the end of the $haystack
Example code
<!--parser:xtscript-->
var $haystack = abcdefghijklm
var $needle = g
var $portion = call strrchr $haystack=$haystack; $needle=$needle
print haystack = $haystack<br />
print needle = $needle<br />
print portion = $portion
<!--/parser:xtscript-->
Show in textareaExample output
Reloadhaystack = abcdefghijklm
needle = g
portion = ghijklm