sample here
input: ~|AAA|BBB|~|~|~|BBB|AAA|~|~|CCC|DDD|AAA|~|AAA|~|EEE|~
output: @AAA|BBB@@@@BBB|AAA@@@CCC|DDD|AAA@@AAA@@EEE@
Using Google-Sheets REGEX functions - is it possible to get the output from input ?
The rules are :
- any "|" adjacent to "~" should become a "@"
- all "~" disappear
- ignore the 3 letter words (which are variable length alpha numeric strings)
I have done this using 3 SUBSTITUTE statements but this bloats my already big formula the string literal arguments are error prone. So can this be done with a REGEX function?