topic description
The requirement is to replace the  better  in text with that strong 
 in the regular mode of the sub method, where I have added r to indicate escape. 
 Why add a\, written as r"\ * (. *?)\ *? 
 Why can"t you just write ringing * (. *?) *? 
 what do the two here do? 
related codes
 text = "Beautiful is  better  than ugly." 
 re.sub (r"\ * (. *?)\ *," , text)   
what result do you expect? What is the error message actually seen?
 in the regular mode of the sub method, I have added r in front to indicate escape. 
 Why add a\, written as r"\ * (. *?)\ *? 
 Why can"t you just write ringing * (. *?) *? 
what I need is between * and *, and I don"t need * to represent the quantity, so why add\ * after r to escape *?
