AFTERLAST$( )

AFTERLAST$( source$, match$)

Description:

This function searches in source$ for the last match using match$ and will return everything after the matching part of the string.  If there is more than one match of match$ in source$ then it will return the rest of source after the position of the last match.

Usage:

 print afterlast$("this is another test", "th")

produces:

  er test

If there is no match it will return an empty string.

See also AFTER$( ), UPTO$( ), MID$( )