Python Regex doesn't work as expected

前端 未结 4 1956
别那么骄傲
别那么骄傲 2021-01-25 20:10

i\'ve crafted this regular expression:

\\\\n<(\\w+)>(.+?)\\\\n

to parse the foll

4条回答
  •  春和景丽
    2021-01-25 21:00

    DON'T PARSE XML/HTML WITH REGEX!

    Use one of the following:

    • BeautifulSoup
    • lxml
    • pyquery

    Enjoy!

    EDIT: Oh yeah it's RSS. What the other people said... I'll be here all week.

提交回复
热议问题