Remove Sub String by using Python

前端 未结 3 763
时光说笑
时光说笑 2020-12-01 01:05

I already extract some information from a forum. It is the raw string I have now:

string = \'i think mabe 124 + 

        
3条回答
  •  不知归路
    2020-12-01 01:43

    >>> import re
    >>> st = " i think mabe 124 + but I don't have a big experience it just how I see it in my eyes fun stuff"
    >>> re.sub("<.*?>","",st)
    " i think mabe 124 + but I don't have a big experience it just how I see it in my eyes fun stuff"
    >>> 
    

提交回复
热议问题