I have a block of text that has acronyms. The acronyms are all written with hyphens, which I want to remove, most likely with s/. The trick is the acronyms can be variable letters long A-B, A-B-C, A-B-C-D, A-B-C-D-E.

So if I have a string, "welcome to the U-S-A competition between B-A and R-C-T-C" and I want to convert it to "welcome to the USA competition between BA and RCTC", how would I do this? Words like "well-coached" should not be affected.

So far, I have three s/ that first replace all four-letter acronyms, then three, then two. Is there a better way to do this with one single s/ expression?

Thanks!