I want to remove the characters \\ from my string. I have tried regextester and it matches, https://regex101.com/r/euGZsQ/1
s = '''That\\'s not true. There are a range of causes. There are a range of issues that we have to address. First of all, we have to identify, share and accept that there is a problem and that we\\''''
pattern = re.compile(r'\\{2,}')
re.sub(pattern, '', s)
I would expect the sub method to replace my \\ with nothing to clean up my string.