I would need to replace the string \begin{tikzpicture}[thick]
with the string \begin{tikzpicture}
, i.e. the “original” string cleaned of everything that is present after the }
.
Yes, I know string.match
and string.gsub
can does the work, but I don’t know which the right pattern is.
Any ideas?