Contents | Index | < Browse | Browse >
LASTPOS(<needle>,<haystack>,[<startpos>])
      returns a number

The result is the character position within the string <haystack> of the
the last occurrence of the string <needle> or 0 if a match isn't found.

If <startpos> is specified, then the search proceeds backwards from that
position in <haystack>.

   Examples:
         say lastpos('eak','growing weaker and weaker');    >>> 21
         say lastpos('eak','growing weaker and weaker',20); >>> 10

   Also see 
                                  NOTE: Extracting file names       

Next: POS() | Prev: INDEX() | Contents: Comparison functions