I have an FME process that is duplicating some values in an attribute. When I try to use regex in FME to clean it up it is deleting the separator (see screengrab below). Any ideas on how I can change the regex or process in FME to just get the required values.
So from
164511|119958|164512|164511|119958|164512|164511|119958|164512
161634|161635|161636|161634|161635|161636|161634|161635|161636|161634|161635|161636|161634|161635|161636|161634|161635|161636
1114|1114|1114|1114|1114
I just want
164511|119958|164512
161634|161635|161636
1114
The value in AttributeManager from FME is @ReplaceRegEx(@Value(Name_Ids),"(?:^|\G)(\b\w+\b),?(?=.*\1)\|",\1)
I have tried to replace \b),?(?
with \b)\|(?
to use the |
seperator but that doesn't work either. This is based on https://superuser.com/a/1343524/639219
The regex tester is https://regex101.com/r/1YhC59/1