Hi,
I am trying to compare two columns which has firm names from two different data set. The issue is there are all these different strings at the end as INC, LLC, INC., CO etc. I tried to trim the last part of the string using trim and regex function but it doesn't seem to work. The input and expected output example is given below. Trying to see if there is any better and easy way to do this. Thank you in advance!
Input
ABC LLC
XYX INC.,
UIE Advisors, CO.
KJD, LLC.,
Output
ABC
XYX
UIE Advisors
KJD