Hi There, Regex noob here,
I need to replace the city and state at the end of strings like these (out of over 54k records,)
COMPANYNAME, INC. FRANKLIN, TN
ANOTHERCOMPANYNAME, ROCHESTER ROCHESTER, NY
COMPANYNAMEDIFFERENT, INC. HOUSTON, TX
PARTNER, PARTNER, PRINCIPAL & ANOTHER LAWYER, PLLC TROY, MI
I'm doing it with the following formula
TRIM(REGEX_Replace([CompanyName_new], "(\S+)\s*\,\s*(\S+)+$",""))
But some of the names on the list are causing it to "exceed predefined bounds" and recommends "refactoring the regex to make choice unambiguous.
I've looked into the error and am not sure what part of this is causing a potential loop. Any help is greatly appreciated.
Cheers!