#rfind(), #rindex(), #rsearch()
DESCRIPTION
returns the index position (beginning at 1) of a substring within string,
with the search starting at the end of the string; else 0 if not found
SYNOPSIS
#rfind(s1,s2)
#rindex(s1,s2)
#rsearch(s1,s2)
ARGUMENTS
s1 - a quoted string, or string expression
s2 - a quoted string, or string expression
EXAMPLES
# pikt +C 'output $text(#find("let us trace our steps","trace"))'
8
rule
set $user = $substr($name,#rindex($name,"/")+1)
SEE ALSO
#find(), #index(), #search()
Numerical Functions
String Functions