Python script for replacing text with multiple characters

"[A-Z']+" and must use " instead of '

re.sub(r"[A-Z']+", lambda m: replacements[m.group()], t)

2 Likes