hello
how can I replace 2 strings in the same time? for example let's say I have string like this:
str1 = "AAAA BBBB CCCC DDDD"
i want to replace every "AAAA" with "CCCC" and every "CCCC" with "AAAA" but if i did:
str1.gsub("AAAA","CCCC") # CCCC BBBB CCCC DDDD
str1.gsub("CCCC","AAAA") # AAAA BBBB AAAA DDDD
what I want str1 to be "CCCC BBBB AAAA DDDD"