CodePudding user response:
Def test_re () :
The import re
Test_html="'
Question points: 20 points & lt;/span>
"'
The pattern=re.com running (r '& lt; [^ & gt;] +> 're. S)
Result=pattern. Sub (' ', test_html)
Print (result)
Test_re ()
CodePudding user response:
Def test_re () :
The import re
Test_html="'
Question points: 20 points & lt;/span>
"'
The pattern=re.com running (r '& lt; [^ & gt;] +> 're. S)
Result=pattern. Sub (' ', test_html)
Print (result)
Test_re ()