What is your goal?
I need to convert a space-separated string of numbers (e.g. ā1 2 3ā) into a pipe-separated string (e.g. ā1|2|3ā) to use as a regex alternation pattern in a Text Parser module.
What is the problem & what have you tried?
In a SetVariable (util:SetVariable2) module, Iām using replace(871.$2; " "; ā|ā) where 871.$2 contains ā1 2 3ā. The module returns ā1 2 3ā unchanged ā the pipe character is never substituted. I also tried replace(871.$2; " "; ā|ā) with quotes, join(split(871.$2; " "); ā|ā), and putting the replace() directly in the Text Parser pattern field. None of these worked. The replace() works fine with other characters like comma, but not with pipe.
