I have a TeX document like so
s = '\textbf{1 + 1} \begin{center} \textbf{some text in here:} \end{center} and \textbf{2} etc'
I would like to remove the \textbf{
and the closing brace }
So the final text would look something like this
1 + 1 \begin{center} some text in here: \end{center} and 2 etc'
This is what I have tried so far
import re
re.sub(r'\textbf{(.*)}', '\\1', s)