Suppose I have a sentence such as
string = 'USA and EU are not hosting the SWCP'
Desired output - add a . and a space after each letter
'U. S. A. and E. U. are not hosting the S. W. C. P.'
I was thinking of using re.sub() but couldn't really figure out how to express the replacement and use the letters previously found by the regex.
reg = r'[A-Z]{2,4}'
string = re.sub(reg, ???, string)