<-- Previous || Up || Next -->

Right Of Last Match Fast Function
String Searches Class

Public Function RightOfLastMatchFast( _
      ByRef vIn As String _
    , ByRef vPat As String _
    , ByRef vCompare As VbCompareMethod _
    , ByRef vIfNotFound As String _
    ) As String

Return the portion of vLine after the last occurrence of vFind, else return vIfNotFound.
If a match is found, it does not include the matching text in the string that is returned.
Faster version of the RightOfLastMatch function which uses restrictive argument types to avoid argument fix-up code.

Examples:
    RightOfLastMatchFast("This is a test.", "is", vbTextCompare, "") = " a test."
    RightOfLastMatchFast("This is a test.", "sample", vbTextCompare, "Not found.") = "Not found."
See also:
    RightOfLastMatch Function
vLine: The string which is to be searched for the appearance of string vFind.
vFind: The string which is to be searched for within string vLine. Function returns an empty string if vFind is an empty string.
vCompare: Specifies the type of comparison used to determine if strings match.
vIfNotFound: The string which is to be returned if vFind does not appear within vLine.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.