In delimited string replace substring between the delimiters only if the substring matches replacement value
问题 I need to in a delimited string, replace substring between the delimiters only if the substring matches the replacement value Using this in Google sheets The matching var ifind = ["AA", "CaaL"]; var ireplace = ["zz", "Bob"]; zz replaces AA Bob replaces CaaL I have | Id | Segment | |----|--------------------| | 1 | AAA AA|AA|CaaL AA | | 2 | AAA-AA|AA|CaaL | | 3 | AAA, AA|AA|AA | | 4 | AA | | 5 | AA AA | | 6 | AA, AA | | 7 | | | 8 | CaaL | | 9 | AA | I need | Id | Segment | |----|--------------