How can I remove a sub-string from a string starting and ending with a certain character combination like:
' bla <span class=""latex""> ... This can be different1 ... </span> blub <span class=""latex""> ... This can be different2 ... </span> bleb'
That I want as result:
'bla blub bleb'
I tried something like this
string.replace('<span class=""latex"">' * '</span>', '')
but this does not work.
Is there a way to implement this?