I have a string like below:
string = "<sub>1</sub>"
I wanna change the tag sub to something like this:
 "<sub>1</sub>" ->  "-sub--1--sub-"
I've tried this:
string1 = re.sub('<sub.*>','-sub--',string)
string1 = re.sub('</sub>','--sub-',string)
but it doesn't work.
 
     
     
     
    