#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
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
HTML text
appearance
macros