I am looking to remove the text between two different special characters in a string. The string is a comma-delimited list that contains a value that is immediately followed by special characters with a substring between. The characters and substring can appear once, multiple times, or not at all in the comma delimited list. Also, the substring between the two characters is never the same. I'd like to remove anything between the greater/less than symbols, as well as those two characters. Please note I do not have permission to create temp functions in this database.
Current result:
PersonID Loc Code
12345 LOC1 M25.532<1010771>, S52.572A<1010772>, S66.892A<1010773>
12346 LOC2 M20.530<1010652>, S52.573A<1010752>
12347 LOC3 M29.52<1045201>
Desired result:
PersonID Location Code
12345 LOC1 M25.532, S52.572A, S66.892A
12346 LOC2 M20.530, S52.573A
12347 LOC3 M29.52