I want to replace (number) with number following expression:
4 + (3) - (7)
It should be:
4 + 3 - 7
If the expression:
2+(2)-(5-2/5)
It should look like this:
2+2-(5-2/5)
I tried
a = a.replace(r'\(\d\+)', '')
where a is a string, but it does not work. Thanks!
source share