• Sugsy (7/22/2011)


    Just for the record Kingston's suggestion works fine n'all

    Actually, it doesn't. It works as long as the last three characters aren't repeated anywhere else in the string, but will not work if the characters are repeated. For example, if the original string is "CH*012*01", Kingston's solution will produce "CH2" whereas the correct solution is "CH*012'

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA