I need a way to trim a string in PL/SQL based on the location of the last commas in the string. However, there is no uniform format for the incoming strings, and I can't find a way to trim the string effectively.
HU-15-02 | HU, NYI, HAA East (should be trimmed to just HAA East)
MX-01-05 | MX, 01-05, OFFICES (OFFICES)
DK-94-02 | DK, ViewCom (VIEWCOM)
the format is country code, followed by a building ID (if applicable), followed by the name of the building (which is what I want)